CINXE.COM

<!DOCTYPE html><html lang="fr"><head><meta charSet="utf-8" data-next-head=""/><meta id="viewport" name="viewport" content="width=device-width" data-next-head=""/><meta http-equiv="X-UA-Compatible" content="IE=edge" data-next-head=""/><meta name="keywords" content="comparer du texte, diff en ligne, diff, outil de diff, diff rapide, quickdiff, outil de diff en ligne, vérificateur de diff, gnu diff" data-next-head=""/><meta name="description" content="Diffchecker compare le texte pour trouver la différence entre deux fichiers texte. Collez simplement vos fichiers et cliquez sur &#x27;Trouver la différence&#x27;!" data-next-head=""/><meta property="og:description" content="Diffchecker compare le texte pour trouver la différence entre deux fichiers texte. Collez simplement vos fichiers et cliquez sur &#x27;Trouver la différence&#x27;!" data-next-head=""/><meta property="fb:admins" content="506766675" data-next-head=""/><meta property="og:type" content="website" data-next-head=""/><meta property="og:image:width" content="1200" data-next-head=""/><meta property="og:image:height" content="600" data-next-head=""/><meta property="og:image" content="https://www.diffchecker.com/static/images/fb-image.png" data-next-head=""/><meta property="og:title" content="Diffchecker - Comparez du texte en ligne pour trouver la différence entre deux fichiers texte" data-next-head=""/><link rel="alternate" hrefLang="en" href="https://www.diffchecker.com/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="de" href="https://www.diffchecker.com/de/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="fr" href="https://www.diffchecker.com/fr/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="es" href="https://www.diffchecker.com/es/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="pt" href="https://www.diffchecker.com/pt/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="it" href="https://www.diffchecker.com/it/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="hi" href="https://www.diffchecker.com/hi/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="zh-Hans" href="https://www.diffchecker.com/zh-Hans/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="zh-Hant" href="https://www.diffchecker.com/zh-Hant/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="jp" href="https://www.diffchecker.com/jp/qxrjy8a4/" data-next-head=""/><link rel="alternate" hrefLang="x-default" href="https://www.diffchecker.com/qxrjy8a4/" data-next-head=""/><title data-next-head="">Untitled diff - Diffchecker</title><meta property="og:title" content="Untitled diff - Diffchecker" data-next-head=""/><meta name="description" content="&lt;?php class network { public $id; public $info; public $is_private; public $is_pu" data-next-head=""/><meta property="og:description" content="&lt;?php class network { public $id; public $info; public $is_private; public $is_pu" data-next-head=""/><script>if (typeof window !== 'undefined' && window.document.documentMode) { window.location.replace('/outdated.html') }</script><script type="text/javascript"> if (typeof window !== 'undefined') { window.setAnonymousProperties = () => undefined; } </script><script id="is-mobile" type="text/javascript" data-nscript="beforeInteractive"> function isMobile() { const toMatch = [ /Android/i, /webOS/i, /iPhone/i, /iPad/i, /iPod/i, /BlackBerry/i, /Windows Phone/i ]; return toMatch.some((toMatchItem) => { return navigator.userAgent.match(toMatchItem); }); } </script><link rel="preload" href="/_next/static/css/7483df7ae97b0dc6.css" as="style"/><link rel="stylesheet" href="/_next/static/css/7483df7ae97b0dc6.css" data-n-g=""/><link rel="preload" href="/_next/static/css/50654d11b22cfbb4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/50654d11b22cfbb4.css" data-n-p=""/><link rel="preload" href="/_next/static/css/194ad95c9a7a749b.css" as="style"/><link rel="stylesheet" href="/_next/static/css/194ad95c9a7a749b.css" data-n-p=""/><link rel="preload" href="/_next/static/css/8d4d63c6c6eef6a4.css" as="style"/><link rel="stylesheet" href="/_next/static/css/8d4d63c6c6eef6a4.css" data-n-p=""/><link rel="preload" href="/_next/static/css/e0b97ac66e0c485a.css" as="style"/><link rel="stylesheet" href="/_next/static/css/e0b97ac66e0c485a.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-de919ca075a9be54.js" defer=""></script><script src="/_next/static/chunks/framework-7c18145f290b7a5d.js" defer=""></script><script src="/_next/static/chunks/main-3ae66922179c781d.js" defer=""></script><script src="/_next/static/chunks/pages/_app-24ffaf3bd2bcea62.js" defer=""></script><script src="/_next/static/chunks/d3f06312-07e06dbb7ce67347.js" defer=""></script><script src="/_next/static/chunks/1813-185acbab9fdcbadf.js" defer=""></script><script src="/_next/static/chunks/6237-ab442ab8717e7083.js" defer=""></script><script src="/_next/static/chunks/3656-459899169b51c699.js" defer=""></script><script src="/_next/static/chunks/4649-291a13aa200b09fe.js" defer=""></script><script src="/_next/static/chunks/7757-ca8c99abc1edf86f.js" defer=""></script><script src="/_next/static/chunks/463-81bdbbdcf79bce15.js" defer=""></script><script src="/_next/static/chunks/2821-6a83991c135d23d1.js" defer=""></script><script src="/_next/static/chunks/7494-a241255ab99361db.js" defer=""></script><script src="/_next/static/chunks/7753-287af2a5a1730a0d.js" defer=""></script><script src="/_next/static/chunks/5872-fd266cbff05e15b6.js" defer=""></script><script src="/_next/static/chunks/283-ab1f4a3a407e7fdc.js" defer=""></script><script src="/_next/static/chunks/1038-4bbda829fc23b8a7.js" defer=""></script><script src="/_next/static/chunks/pages/%5B...slug%5D-b9f4bacb5169b7e9.js" defer=""></script><script src="/_next/static/L75eMLtMTTv3v9KlKtPmo/_buildManifest.js" defer=""></script><script src="/_next/static/L75eMLtMTTv3v9KlKtPmo/_ssgManifest.js" defer=""></script></head><body style="margin:0"><div id="__next"><script type="text/javascript"> if (typeof window !== 'undefined' && typeof window.mixpanel === 'undefined') { var MIXPANEL_CUSTOM_LIB_URL = 'https://t.diffchecker.com/__mix/lib.min.js'; (function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "); for(h=0;h<i.length;h++)g(a,i[h]);var j="set set_once union unset remove delete".split(" ");a.get_group=function(){function b(c){d[c]=function(){call2_args=arguments;call2=[c].concat(Array.prototype.slice.call(call2_args,0));a.push([e,call2])}}for(var d={},e=["get_group"].concat(Array.prototype.slice.call(arguments,0)),c=0;c<j.length;c++)b(j[c]);return d};b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===f.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]); mixpanel.init('e1e041be457a54a3c8b12b15d6ea4177', { api_host: 'https://t.diffchecker.com', persistence: 'localStorage', loaded: (mixpanel) => { if (window.anonymousProperties) { window.setAnonymousProperties(mixpanel.get_distinct_id(), window.anonymousProperties); } } }); } </script><div id="page" class="page_main__ureoL web new"><script id="bsaOptimizeQueue">window.optimize = window.optimize || { queue: [] };</script><script id="bsaOptimizeScript" src="https://cdn4.buysellads.net/pub/diffchecker.js?1732706400000" async=""></script><nav class="nav_nav__RT8mp"><a class="logo_logo__TxG5d" href="/fr/"><img src="/static/images/new/diffchecker.svg" alt="Diffchecker logo" class="logo_logoImage___hgf9"/><span class="logo_logoText__bQ6qQ"><span>Diff</span>checker</span></a><div class="hide-print nav_mainLinks__1E9oX"><ul class="nav_buttonGrouping__BJ6N6 nav_diffLinks__eleoH"><li class="nav_mobileMainItem__Q_Q8s"><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/"><span class="button_textContent__h9hLW">Texte</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5 7 3 3 3-3"></path></svg></a></li><li class="nav_hideOnMobile__0hEs9"><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/"><span class="button_textContent__h9hLW">Texte</span></a></li><li class=""><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/image-compare/"><span class="button_textContent__h9hLW">Images</span></a></li><li class=""><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/word-pdf-compare/"><span class="button_textContent__h9hLW">PDF</span></a></li><li class=""><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/excel-compare/"><span class="button_textContent__h9hLW">Excel</span></a></li><li><button class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Dossiers</span></button></li></ul><ul class="hide-print nav_buttonGrouping__BJ6N6"><li><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/pro-features/"><span class="button_textContent__h9hLW">Fonctions</span></a></li><li><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/desktop/"><span class="button_textContent__h9hLW">Application de bureau</span></a></li><li><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/pricing/"><span class="button_textContent__h9hLW">Tarifs</span></a></li></ul></div><div class="hide-print nav_buttonGrouping__BJ6N6 nav_dividerContainer__hFgcJ nav_hideOnMobile__0hEs9"><div class="divider_vertical__YamCW nav_divider__71tld"></div><div id="g_id_onload" data-client_id="2572934557-pls7h1u897r2593nfk7pp7ilibtqabto.apps.googleusercontent.com" data-context="signin" data-cancel_on_tap_outside="false" data-prompt_parent_id="g_id_onload" data-login_uri="https://api.diffchecker.com/auth/google/one-tap/callback?flow=signup&amp;next=%2F%5B...slug%5D"></div></div><ul class="hide-print nav_buttonGrouping__BJ6N6 nav_hideOnMobile__0hEs9"><li><a class="nav_navItem__pvS23 button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" href="/fr/login/?slug=qxrjy8a4"><span class="button_textContent__h9hLW">Se connecter</span></a></li><li><a class="nav_hideDownloadDesktop__pq0_K button_button__bjA22 button_primary__rOLXs button_green__M6qy2 button_default__8ts32 button_basic__UWiCh" href="/fr/download-trial/"><span class="button_textContent__h9hLW">Télécharger Diffchecker Desktop</span></a></li></ul><div class="nav-user-dropdown_navUserDropdown__kEIH3 nav-user-dropdown_noAccount__Kb0UN"><div class="dropdown_root__Or4v6 dropdown_rightAlign__rfD_D dropdown_icon__W6r1c"><button class="dropdown_buttonControl__LZjEs button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" aria-label="Open dropdown" data-testid="dropdown-button-two" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 8H3M13 4H3M13 12H3"></path></svg></button></div></div></nav><div class="main content noHeader noFooter page_content__Weq2t"><div><div><div data-testid="diff-checker"><div class="diff-checker_diffCheckerEditor__ufM1r"><div class="diff-checker_diffOutputContainer__Hx5Dw undefined"><div class="sidebar_wrapper__4evdA sidebar_open__t5FYZ sidebar_wrapperLeft__NDtI_" style="--width:192px"><div class="sidebar_above__HdKZx"><div class="diff-checker_overflowWrapper__ZioaH" style="height:100px"><div class="diff-checker_description__riiDR"><h1 class="diff-checker_descriptionTitle__g5uFB">Comparer le texte</h1><p class="diff-checker_descriptionTagline__2WFc_">Encuentra la diferencia entre dos archivos de texto</p></div></div></div><div class="sidebar_sidebar__tbKJg"><div class="sidebar_background__uM3cu"></div><div class="sidebar_buttonWrapper__UVBah"><button class="sidebar_minimizeButton__5tktT button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh" aria-label="Minimize sidebar" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 5 6 8l3 3"></path></svg></button></div><div class="sidebar_header__cmSKp"><div class="sidebar_headerContent__HTG32"><div class="text-diff-sidebar_tabs__ZdPjE"><button class="tab_tab__OVTjB tab_button__C4B4w tab_selected__lSKYt" aria-label="Settings tab"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 13V3M4 13V3M12 13V3" opacity="0.4"></path><circle cx="4" cy="10" r="1" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle><circle cx="8" cy="6" r="1" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle><circle cx="12" cy="8" r="1" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle></svg></button><button class="tab_tab__OVTjB tab_button__C4B4w" aria-label="History tab"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><circle cx="8" cy="8" r="7" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" opacity="0.2"></circle><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.05 12.95a7 7 0 1 0 0-9.9L1.636 4.465m0 0h2.828m-2.828 0V1.5M8 4.5V8l1.5 1.5"></path></svg></button></div></div><div class="divider_horizontal__Lcihu"></div></div><div class="sidebar_body__eiiLE"><div class="sidebar_bodyHeightContainer__pQicn"><div class="sidebar_bodyOverflowWrapper__jRaNn"><div id="pdf-sidebar-body" class="sidebar_bodyContent__Hfo0d"><div class="settings_containerForSidebar__Or9hS"><div class="settings_settings__4j5BV"><div class="settings_toggleSection__VMNdN settings_section__BliA6"><div class="diff-toggle_container__WVXFJ"><span class="diff-toggle_label__ZdTwn">Real-time diff</span><input type="checkbox" name="Real-time diff" class="diff-toggle_toggle__SXpVC toggle-switch_toggleButton__wqvYp" data-testid="toggle-switch-real-time-diff" readonly=""/></div><div class="diff-toggle_container__WVXFJ"><span class="diff-toggle_label__ZdTwn">Unified diff</span><input type="checkbox" name="Unified diff" class="diff-toggle_toggle__SXpVC toggle-switch_toggleButton__wqvYp" data-testid="toggle-switch-unified-diff" readonly=""/></div><div class="diff-toggle_container__WVXFJ"><span class="diff-toggle_label__ZdTwn">Collapse lines</span><input type="checkbox" name="Collapse lines" class="diff-toggle_toggle__SXpVC toggle-switch_toggleButton__wqvYp" data-testid="toggle-switch-collapse-lines" readonly=""/></div></div><div class="settings_section__BliA6"><div class="settings_sectionTitle__fgMnm settings_roomForProBadge__slDwE">Highlight change</div><div class="settings_proWrapper__yTwso settings_mediumRadius__vlNks"><div class="segmented-switch_container__BivC4"><button class="segmented-switch_option__RLunC segmented-switch_selected__9gvLE button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Mot</span></button><button class="segmented-switch_option__RLunC button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Caractère</span></button></div></div></div><div class="settings_section__BliA6"><div class="settings_sectionTitle__fgMnm settings_roomForProBadge__slDwE">Syntax highlighting</div><div class="settings_proWrapper__yTwso settings_mediumRadius__vlNks"><div class="dropdown_root__Or4v6 dropdown_text__cVRwO"><button class="dropdown_buttonControl__LZjEs button_button__bjA22" data-testid="dropdown-button-one" type="button"><span class="dropdown_buttonText__v8h8q">Choose syntax</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5 7 3 3 3-3"></path></svg></button></div></div></div><div class="settings_section__BliA6"><div class="settings_sectionTitle__fgMnm">Outils</div><div class="settings_buttonContainer__Phqgp"><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-transformer-en-minuscules-button" type="button"><span class="settings_label__vxtID">Transformer en minuscules</span></button><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-trier-les-lignes-button" type="button"><span class="settings_label__vxtID">Trier les lignes</span></button><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-remplacer-les-sauts-de-ligne-par-des-espaces-button" type="button"><span class="settings_label__vxtID">Remplacer les sauts de ligne par des espaces</span></button><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-couper-les-espaces-blancs-button" type="button"><span class="settings_label__vxtID">Couper les espaces blancs</span></button></div></div><div class="settings_section__BliA6"><div class="settings_buttonContainer__Phqgp"><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-comparer-et-fusionner-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" d="M2 14h12V2H2z" opacity="0.2"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m12.5 11-3-3 3-3M3.5 11l3-3-3-3"></path></svg><span class="settings_label__vxtID">Comparer et fusionner</span></button><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-exporter-au-format-pdf-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 2v10M8 2 3 7m5-5 5 5"></path><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 15H2v-3h12z" opacity="0.2"></path></svg><span class="settings_label__vxtID">Exporter au format PDF</span></button><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-exporter-un-fichier-sous-excel-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2 9h12v6H2z" opacity="0.2"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 2v10M8 2 3 7m5-5 5 5"></path></svg><span class="settings_label__vxtID">Exporter un fichier sous Excel</span></button></div></div><div class="settings_section__BliA6"><div class="settings_buttonContainer__Phqgp"><button class="settings_settingsButton__28_w4 button_button__bjA22" data-testid="settings-éditeur-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 13V3m0 10L3 8m5 5 5-5"></path></svg><span class="settings_label__vxtID">Éditeur</span></button></div></div></div></div></div></div></div></div></div></div><div class="diff-checker_entireOutput__WkKp_"><div class="diff-checker_ads__k93fp"><div class="hide-print ad-box_container__q9Jhx undefined"><div class="ad-native-single_adNative__m8hCY ad-native-single_fullWidth__Hbe5j"><a href="https://www.diffchecker.com/desktop" target="_blank" class="ad-native-single_banner__5XY7b ad-native-single_allowBreak__fYOqJ ad-native-single_transparentImage__ZQcnt" style="--ctaBackgroundColor:var(--theme-colors-background-green-primary-default);--ctaBackgroundHoverColor:var(--theme-colors-background-green-primary-hover);--ctaTextColor:var(--colors-white);--ctaTextColorHover:var(--colors-white);--backgroundColor:transparent"><span class="ad-native-single_innerContent__TC_ys"><span class="ad-native-single_imageAndText__CNICU"><img src="/static/images/new/diffchecker.svg" alt="Diffchecker Desktop icon"/><div class="ad-native-single_textAndButton__1tilL"><span class="ad-native-single_text__0z5D6"><span class="ad-native-single_title__HzAtQ">Diffchecker Desktop<!-- --> </span><span class="ad-native-single_description__TvOFJ">The most secure way to run Diffchecker. Get the Diffchecker Desktop app: your diffs never leave your computer!</span></span><span class="ad-native-single_cta__6Q0op">Get Desktop</span></div></span></span></a></div><div style="width:100%"></div></div></div><div class="diff-checker_output__gDSsH"><div class="text-diff-header_wrapper__KvHTO"><div class="diff-desktop-banner_container__RDvkE"><h2 class="diff-desktop-banner_title__v_liw">Comparing sensitive data, confidential files or internal emails?</h2><p class="diff-desktop-banner_text___Binl">Most legal and privacy policies prohibit uploading sensitive data online. Diffchecker Desktop ensures your confidential information never leaves your computer. Work offline and compare documents securely.</p><div class="diff-desktop-banner_buttons__lznVh"><a class="button_button__bjA22 button_primary__rOLXs button_green__M6qy2 button_default__8ts32 button_basic__UWiCh" href="/download-trial/"><span class="button_textContent__h9hLW">Download Diffchecker Desktop</span></a><a class="button_button__bjA22 button_secondary__gYswm button_base__hYGrz button_default__8ts32 button_basic__UWiCh" href="/desktop/"><span class="button_textContent__h9hLW">Learn more</span></a></div><button class="diff-desktop-banner_closeButton__crdZi button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh" aria-label="Close modal" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.536 4.464 8 8m-3.536 3.536L8 8m0 0 3.536 3.536M8 8 4.464 4.464"></path></svg></button></div><header class="text-diff-header_diffHeader__jBwph"><h2 class="text-diff-header_headerTitle__oHgA_"><span>Untitled diff</span></h2><div class="text-diff-header_timestamps__gNE9c"><span>Created <time dateTime="2015-04-18T21:43:45.666Z" title="2015-04-18T21:43:45.666Z">10 years ago</time></span><span>Diff never expires</span></div><div class="text-diff-header_headerButtons__bua42"><div class="text-diff-header_savedDiffDropdown__ijstL"><div class="dropdown_root__Or4v6 dropdown_rightAlign__rfD_D dropdown_icon__W6r1c"><button class="dropdown_buttonControl__LZjEs button_button__bjA22 button_basic__UWiCh button_default__8ts32 button_basic__UWiCh" aria-label="Open dropdown" data-testid="dropdown-button-two" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" fill-rule="evenodd" d="M9 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0m0 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0m-1 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2" clip-rule="evenodd"></path><path fill="currentColor" d="M8 4.5A1.5 1.5 0 0 0 9.5 3h-1a.5.5 0 0 1-.5.5zM6.5 3A1.5 1.5 0 0 0 8 4.5v-1a.5.5 0 0 1-.5-.5zM8 1.5A1.5 1.5 0 0 0 6.5 3h1a.5.5 0 0 1 .5-.5zM9.5 3A1.5 1.5 0 0 0 8 1.5v1a.5.5 0 0 1 .5.5zM8 9.5A1.5 1.5 0 0 0 9.5 8h-1a.5.5 0 0 1-.5.5zM6.5 8A1.5 1.5 0 0 0 8 9.5v-1a.5.5 0 0 1-.5-.5zM8 6.5A1.5 1.5 0 0 0 6.5 8h1a.5.5 0 0 1 .5-.5zM9.5 8A1.5 1.5 0 0 0 8 6.5v1a.5.5 0 0 1 .5.5zm-1 5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 9.5 13zm-.5-.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 8 11.5zm-.5.5a.5.5 0 0 1 .5-.5v-1A1.5 1.5 0 0 0 6.5 13zm.5.5a.5.5 0 0 1-.5-.5h-1A1.5 1.5 0 0 0 8 14.5z"></path></svg></button></div></div><div class="text-diff-header_buttonsWithoutDropdown__Rd4cD"><button class="button_button__bjA22 button_secondary__gYswm button_base__hYGrz button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Effacer</span></button><button class="button_button__bjA22 button_primary__rOLXs button_green__M6qy2 button_default__8ts32 button_basic__UWiCh" data-testid="share-text-diff-button" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 15H3V9h10z" opacity="0.4"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 10a5 5 0 0 1 5-5h2m0 0-2 2m2-2-2-2"></path></svg><span class="button_textContent__h9hLW">Partager</span></button></div></div></header></div><div class="diff-checker_outputSection__RkSy6"><div class="text-diff-output_rootContainer__Go2sT" data-testid="text-diff-output"><div class="text-diff-output_textOutput__4Cioq"><div class="details_details__4vMSx"><div class="details_stat__Mit_D"><div class="details_changed__2f7D_ details_removal___yp1q"><div class="diff-change-stat_stat__A56eJ diff-change-stat_removal__956Zs"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><circle cx="8" cy="8" r="7" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" opacity="0.2"></circle><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 8H4"></path></svg><span>41<!-- --> <!-- -->removals</span></div></div><div class="details_lines___QrYw"><span class="details_lineCount___usqU">729<!-- --> <!-- -->lines</span><div class="details_buttons__nYb3t"><div class=""><button class="details_button__oYCE1 button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Copier tout</span></button></div></div></div></div><div class="details_spacer__Yo3Yz"><button class="button_button__bjA22 button_text__gx7qj button_base__hYGrz button_small__LyxTP button_basic__UWiCh" aria-label="Swap diffs" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m3 10 3 3m-3-3 3-3m-3 3h6" opacity="0.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m14 6-3 3m3-3-3-3m3 3H8"></path></svg></button></div><div class="details_stat__Mit_D"><div class="details_changed__2f7D_ details_addition__o8JtS"><div class="diff-change-stat_stat__A56eJ diff-change-stat_addition__DGBos"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><circle cx="8" cy="8" r="7" fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" opacity="0.2"></circle><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 4v4m0 4V8m0 0h4M8 8H4"></path></svg><span>37<!-- --> <!-- -->additions</span></div></div><div class="details_lines___QrYw"><span class="details_lineCount___usqU">723<!-- --> <!-- -->lines</span><div class="details_buttons__nYb3t"><div class=""><button class="details_button__oYCE1 button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh" type="button"><span class="button_textContent__h9hLW">Copier tout</span></button></div></div></div></div></div><div class="text-diff-output_container__h6DBo"><div class="text-diff-output_innerContainer__Y7U41"><div id="" class="text-diff-output_textDiffContent__xyOJT"><div class="text-diff-output_loading____8or"><div style="position:relative;height:17088px" data-virtuoso-scroller="true"><div style="width:100%;height:100%;position:absolute;top:0" data-viewport-type="window"><div style="box-sizing:border-box;margin-top:0;padding-top:0;padding-bottom:17088px" data-testid="virtuoso-item-list"><div data-index="0" data-known-size="0" data-item-index="0" style="overflow-anchor:none"><div id="text-diff-line-0" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="1" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe">&lt;?php </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="1" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe">&lt;?php </span></div></div></div></div></div></div></div><div data-index="1" data-known-size="0" data-item-index="1" style="overflow-anchor:none"><div id="text-diff-line-1" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="2" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="2" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="2" data-known-size="0" data-item-index="2" style="overflow-anchor:none"><div id="text-diff-line-2" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="3" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> class network </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="3" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> class network </span></div></div></div></div></div></div></div><div data-index="3" data-known-size="0" data-item-index="3" style="overflow-anchor:none"><div id="text-diff-line-3" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="4" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="4" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="4" data-known-size="0" data-item-index="4" style="overflow-anchor:none"><div id="text-diff-line-4" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="5" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="5" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $id; </span></div></div></div></div></div></div></div><div data-index="5" data-known-size="0" data-item-index="5" style="overflow-anchor:none"><div id="text-diff-line-5" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="6" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $info; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="6" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $info; </span></div></div></div></div></div></div></div><div data-index="6" data-known-size="0" data-item-index="6" style="overflow-anchor:none"><div id="text-diff-line-6" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="7" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $is_private; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="7" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $is_private; </span></div></div></div></div></div></div></div><div data-index="7" data-known-size="0" data-item-index="7" style="overflow-anchor:none"><div id="text-diff-line-7" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="8" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $is_public; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="8" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public $is_public; </span></div></div></div></div></div></div></div><div data-index="8" data-known-size="0" data-item-index="8" style="overflow-anchor:none"><div id="text-diff-line-8" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="9" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="9" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="9" data-known-size="0" data-item-index="9" style="overflow-anchor:none"><div id="text-diff-line-9" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="10" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function __construct() </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="10" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function __construct() </span></div></div></div></div></div></div></div><div data-index="10" data-known-size="0" data-item-index="10" style="overflow-anchor:none"><div id="text-diff-line-10" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="11" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="11" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="11" data-known-size="0" data-item-index="11" style="overflow-anchor:none"><div id="text-diff-line-11" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="12" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;id = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="12" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;id = FALSE; </span></div></div></div></div></div></div></div><div data-index="12" data-known-size="0" data-item-index="12" style="overflow-anchor:none"><div id="text-diff-line-12" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="13" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;C = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="13" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;C = new stdClass; </span></div></div></div></div></div></div></div><div data-index="13" data-known-size="0" data-item-index="13" style="overflow-anchor:none"><div id="text-diff-line-13" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="14" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;info = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="14" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;info = new stdClass; </span></div></div></div></div></div></div></div><div data-index="14" data-known-size="0" data-item-index="14" style="overflow-anchor:none"><div id="text-diff-line-14" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="15" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache = &amp; $GLOBALS[&#x27;cache&#x27;]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="15" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache = &amp; $GLOBALS[&#x27;cache&#x27;]; </span></div></div></div></div></div></div></div><div data-index="15" data-known-size="0" data-item-index="15" style="overflow-anchor:none"><div id="text-diff-line-15" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="16" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db1 = &amp; $GLOBALS[&#x27;db1&#x27;]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="16" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db1 = &amp; $GLOBALS[&#x27;db1&#x27;]; </span></div></div></div></div></div></div></div><div data-index="16" data-known-size="0" data-item-index="16" style="overflow-anchor:none"><div id="text-diff-line-16" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="17" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2 = &amp; $GLOBALS[&#x27;db2&#x27;]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="17" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2 = &amp; $GLOBALS[&#x27;db2&#x27;]; </span></div></div></div></div></div></div></div><div data-index="17" data-known-size="0" data-item-index="17" style="overflow-anchor:none"><div id="text-diff-line-17" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="18" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="18" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="18" data-known-size="0" data-item-index="18" style="overflow-anchor:none"><div id="text-diff-line-18" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="19" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="19" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="19" data-known-size="0" data-item-index="19" style="overflow-anchor:none"><div id="text-diff-line-19" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="20" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function LOAD() </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="20" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function LOAD() </span></div></div></div></div></div></div></div><div data-index="20" data-known-size="0" data-item-index="20" style="overflow-anchor:none"><div id="text-diff-line-20" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="21" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="21" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="21" data-known-size="0" data-item-index="21" style="overflow-anchor:none"><div id="text-diff-line-21" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="22" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="22" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="22" data-known-size="0" data-item-index="22" style="overflow-anchor:none"><div id="text-diff-line-22" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="23" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="23" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="23" data-known-size="0" data-item-index="23" style="overflow-anchor:none"><div id="text-diff-line-23" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="24" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="24" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="24" data-known-size="0" data-item-index="24" style="overflow-anchor:none"><div id="text-diff-line-24" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="25" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;load_network_settings(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="25" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;load_network_settings(); </span></div></div></div></div></div></div></div><div data-index="25" data-known-size="0" data-item-index="25" style="overflow-anchor:none"><div id="text-diff-line-25" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="26" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;info = (object) array( </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="26" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;info = (object) array( </span></div></div></div></div></div></div></div><div data-index="26" data-known-size="0" data-item-index="26" style="overflow-anchor:none"><div id="text-diff-line-26" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="27" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;id&#x27; =&gt; 1, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="27" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;id&#x27; =&gt; 1, </span></div></div></div></div></div></div></div><div data-index="27" data-known-size="0" data-item-index="27" style="overflow-anchor:none"><div id="text-diff-line-27" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="28" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="28" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> ); </span></div></div></div></div></div></div></div><div data-index="28" data-known-size="0" data-item-index="28" style="overflow-anchor:none"><div id="text-diff-line-28" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="29" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;is_private = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="29" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;is_private = FALSE; </span></div></div></div></div></div></div></div><div data-index="29" data-known-size="0" data-item-index="29" style="overflow-anchor:none"><div id="text-diff-line-29" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="30" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;is_public = TRUE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="30" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;is_public = TRUE; </span></div></div></div></div></div></div></div><div data-index="30" data-known-size="0" data-item-index="30" style="overflow-anchor:none"><div id="text-diff-line-30" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="31" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;id = $this-&gt;info-&gt;id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="31" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;id = $this-&gt;info-&gt;id; </span></div></div></div></div></div></div></div><div data-index="31" data-known-size="0" data-item-index="31" style="overflow-anchor:none"><div id="text-diff-line-31" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="32" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $this-&gt;id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="32" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $this-&gt;id; </span></div></div></div></div></div></div></div><div data-index="32" data-known-size="0" data-item-index="32" style="overflow-anchor:none"><div id="text-diff-line-32" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="33" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="33" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="33" data-known-size="0" data-item-index="33" style="overflow-anchor:none"><div id="text-diff-line-33" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="34" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe">public function get_latest_dogum($force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="34" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe">public function get_latest_dogum($force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="34" data-known-size="0" data-item-index="34" style="overflow-anchor:none"><div id="text-diff-line-34" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="35" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="35" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="35" data-known-size="0" data-item-index="35" style="overflow-anchor:none"><div id="text-diff-line-35" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="36" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="36" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="36" data-known-size="0" data-item-index="36" style="overflow-anchor:none"><div id="text-diff-line-36" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="37" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="37" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="37" data-known-size="0" data-item-index="37" style="overflow-anchor:none"><div id="text-diff-line-37" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="38" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="38" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="38" data-known-size="0" data-item-index="38" style="overflow-anchor:none"><div id="text-diff-line-38" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="39" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="39" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="39" data-known-size="0" data-item-index="39" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-39" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="40" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_dogum_userz&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-40" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="41" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-41" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="42" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-42" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="43" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-43" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="44" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="40" data-known-size="0" data-item-index="40" style="overflow-anchor:none"><div id="text-diff-line-44" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="45" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="40" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="41" data-known-size="0" data-item-index="41" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-45" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="46" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $num = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">40; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="41" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $num = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">20; </span></div></div></div></div></div></div></div></div></div></div><div data-index="42" data-known-size="0" data-item-index="42" style="overflow-anchor:none"><div id="text-diff-line-46" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="47" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $tarih = pdate(&quot;m-d&quot;, time()); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="42" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $tarih = pdate(&quot;m-d&quot;, time()); </span></div></div></div></div></div></div></div><div data-index="43" data-known-size="0" data-item-index="43" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-47" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="48" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="43" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> </span></div></div></div></div></div></div></div></div></div></div><div data-index="44" data-known-size="0" data-item-index="44" style="overflow-anchor:none"><div id="text-diff-line-48" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="49" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users where birthdate LIKE &quot;%&#x27;.$tarih.&#x27;&quot; ORDER BY id DESC LIMIT &#x27;.$num); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="44" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users where birthdate LIKE &quot;%&#x27;.$tarih.&#x27;&quot; ORDER BY id DESC LIMIT &#x27;.$num); </span></div></div></div></div></div></div></div><div data-index="45" data-known-size="0" data-item-index="45" style="overflow-anchor:none"><div id="text-diff-line-49" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="50" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="45" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div></div></div></div></div><div data-index="46" data-known-size="0" data-item-index="46" style="overflow-anchor:none"><div id="text-diff-line-50" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="51" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="46" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;id); </span></div></div></div></div></div></div></div><div data-index="47" data-known-size="0" data-item-index="47" style="overflow-anchor:none"><div id="text-diff-line-51" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="52" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="47" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="48" data-known-size="0" data-item-index="48" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-52" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="53" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="49" data-known-size="0" data-item-index="49" style="overflow-anchor:none"><div id="text-diff-line-53" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="54" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="48" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="50" data-known-size="0" data-item-index="50" style="overflow-anchor:none"><div id="text-diff-line-54" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="55" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="49" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="51" data-known-size="0" data-item-index="51" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-55" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="50" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div></div></div></div><div data-index="52" data-known-size="0" data-item-index="52" style="overflow-anchor:none"><div id="text-diff-line-56" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="56" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="51" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="53" data-known-size="0" data-item-index="53" style="overflow-anchor:none"><div id="text-diff-line-57" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="57" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function load_network_settings() </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="52" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function load_network_settings() </span></div></div></div></div></div></div></div><div data-index="54" data-known-size="0" data-item-index="54" style="overflow-anchor:none"><div id="text-diff-line-58" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="58" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="53" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="55" data-known-size="0" data-item-index="55" style="overflow-anchor:none"><div id="text-diff-line-59" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="59" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $db = &amp;$this-&gt;db1; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="54" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $db = &amp;$this-&gt;db1; </span></div></div></div></div></div></div></div><div data-index="56" data-known-size="0" data-item-index="56" style="overflow-anchor:none"><div id="text-diff-line-60" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="60" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $db-&gt;query(&#x27;SELECT * FROM settings&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="55" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $db-&gt;query(&#x27;SELECT * FROM settings&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="57" data-known-size="0" data-item-index="57" style="overflow-anchor:none"><div id="text-diff-line-61" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="61" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $db-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="56" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $db-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="58" data-known-size="0" data-item-index="58" style="overflow-anchor:none"><div id="text-diff-line-62" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="62" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;C-&gt;{$obj-&gt;word} = stripslashes($obj-&gt;value); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="57" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;C-&gt;{$obj-&gt;word} = stripslashes($obj-&gt;value); </span></div></div></div></div></div></div></div><div data-index="59" data-known-size="0" data-item-index="59" style="overflow-anchor:none"><div id="text-diff-line-63" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="63" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="58" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="60" data-known-size="0" data-item-index="60" style="overflow-anchor:none"><div id="text-diff-line-64" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="64" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="59" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="61" data-known-size="0" data-item-index="61" style="overflow-anchor:none"><div id="text-diff-line-65" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="65" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> global $C; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="60" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> global $C; </span></div></div></div></div></div></div></div><div data-index="62" data-known-size="0" data-item-index="62" style="overflow-anchor:none"><div id="text-diff-line-66" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="66" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($this-&gt;C as $k=&gt;$v) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="61" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($this-&gt;C as $k=&gt;$v) { </span></div></div></div></div></div></div></div><div data-index="63" data-known-size="0" data-item-index="63" style="overflow-anchor:none"><div id="text-diff-line-67" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="67" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;$k = &amp; $this-&gt;C-&gt;$k; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="62" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;$k = &amp; $this-&gt;C-&gt;$k; </span></div></div></div></div></div></div></div><div data-index="64" data-known-size="0" data-item-index="64" style="overflow-anchor:none"><div id="text-diff-line-68" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="68" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="63" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="65" data-known-size="0" data-item-index="65" style="overflow-anchor:none"><div id="text-diff-line-69" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="69" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_LINK_DISABLED) ) { $C-&gt;ATTACH_LINK_DISABLED = 0; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="64" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_LINK_DISABLED) ) { $C-&gt;ATTACH_LINK_DISABLED = 0; } </span></div></div></div></div></div></div></div><div data-index="66" data-known-size="0" data-item-index="66" style="overflow-anchor:none"><div id="text-diff-line-70" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="70" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_FILE_DISABLED) ) { $C-&gt;ATTACH_FILE_DISABLED = 0; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="65" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_FILE_DISABLED) ) { $C-&gt;ATTACH_FILE_DISABLED = 0; } </span></div></div></div></div></div></div></div><div data-index="67" data-known-size="0" data-item-index="67" style="overflow-anchor:none"><div id="text-diff-line-71" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="71" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_IMAGE_DISABLED) ) { $C-&gt;ATTACH_IMAGE_DISABLED = 0; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="66" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_IMAGE_DISABLED) ) { $C-&gt;ATTACH_IMAGE_DISABLED = 0; } </span></div></div></div></div></div></div></div><div data-index="68" data-known-size="0" data-item-index="68" style="overflow-anchor:none"><div id="text-diff-line-72" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="72" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_VIDEO_DISABLED) ) { $C-&gt;ATTACH_VIDEO_DISABLED = 0; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="67" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;ATTACH_VIDEO_DISABLED) ) { $C-&gt;ATTACH_VIDEO_DISABLED = 0; } </span></div></div></div></div></div></div></div><div data-index="69" data-known-size="0" data-item-index="69" style="overflow-anchor:none"><div id="text-diff-line-73" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="73" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_COMPANY) ) { $C-&gt;HDR_SHOW_COMPANY = 1; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="68" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_COMPANY) ) { $C-&gt;HDR_SHOW_COMPANY = 1; } </span></div></div></div></div></div></div></div><div data-index="70" data-known-size="0" data-item-index="70" style="overflow-anchor:none"><div id="text-diff-line-74" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="74" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_LOGO) ) { $C-&gt;HDR_SHOW_LOGO = 1; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="69" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_LOGO) ) { $C-&gt;HDR_SHOW_LOGO = 1; } </span></div></div></div></div></div></div></div><div data-index="71" data-known-size="0" data-item-index="71" style="overflow-anchor:none"><div id="text-diff-line-75" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="75" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_CUSTOM_LOGO) ) { $C-&gt;HDR_CUSTOM_LOGO = &#x27;&#x27;; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="70" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_CUSTOM_LOGO) ) { $C-&gt;HDR_CUSTOM_LOGO = &#x27;&#x27;; } </span></div></div></div></div></div></div></div><div data-index="72" data-known-size="0" data-item-index="72" style="overflow-anchor:none"><div id="text-diff-line-76" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="76" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_FAVICON) ) { $C-&gt;HDR_SHOW_FAVICON = 1; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="71" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_SHOW_FAVICON) ) { $C-&gt;HDR_SHOW_FAVICON = 1; } </span></div></div></div></div></div></div></div><div data-index="73" data-known-size="0" data-item-index="73" style="overflow-anchor:none"><div id="text-diff-line-77" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="77" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_CUSTOM_FAVICON) ) { $C-&gt;HDR_CUSTOM_FAVICON = &#x27;&#x27;; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="72" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;HDR_CUSTOM_FAVICON) ) { $C-&gt;HDR_CUSTOM_FAVICON = &#x27;&#x27;; } </span></div></div></div></div></div></div></div><div data-index="74" data-known-size="0" data-item-index="74" style="overflow-anchor:none"><div id="text-diff-line-78" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="78" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;MOBI_DISABLED) ) { $C-&gt;MOBI_DISABLED = 0; } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="73" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;MOBI_DISABLED) ) { $C-&gt;MOBI_DISABLED = 0; } </span></div></div></div></div></div></div></div><div data-index="75" data-known-size="0" data-item-index="75" style="overflow-anchor:none"><div id="text-diff-line-79" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="79" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="74" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="76" data-known-size="0" data-item-index="76" style="overflow-anchor:none"><div id="text-diff-line-80" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="80" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $current_language = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="75" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $current_language = new stdClass; </span></div></div></div></div></div></div></div><div data-index="77" data-known-size="0" data-item-index="77" style="overflow-anchor:none"><div id="text-diff-line-81" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="81" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> include($C-&gt;INCPATH.&#x27;languages/&#x27;.$C-&gt;LANGUAGE.&#x27;/language.php&#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="76" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> include($C-&gt;INCPATH.&#x27;languages/&#x27;.$C-&gt;LANGUAGE.&#x27;/language.php&#x27;); </span></div></div></div></div></div></div></div><div data-index="78" data-known-size="0" data-item-index="78" style="overflow-anchor:none"><div id="text-diff-line-82" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="82" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> setlocale(LC_ALL, $current_language-&gt;php_locale); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="77" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> setlocale(LC_ALL, $current_language-&gt;php_locale); </span></div></div></div></div></div></div></div><div data-index="79" data-known-size="0" data-item-index="79" style="overflow-anchor:none"><div id="text-diff-line-83" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="83" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="78" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="80" data-known-size="0" data-item-index="80" style="overflow-anchor:none"><div id="text-diff-line-84" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="84" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;DEF_TIMEZONE) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="79" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($C-&gt;DEF_TIMEZONE) ) { </span></div></div></div></div></div></div></div><div data-index="81" data-known-size="0" data-item-index="81" style="overflow-anchor:none"><div id="text-diff-line-85" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="85" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;DEF_TIMEZONE = $current_language-&gt;php_timezone; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="80" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;DEF_TIMEZONE = $current_language-&gt;php_timezone; </span></div></div></div></div></div></div></div><div data-index="82" data-known-size="0" data-item-index="82" style="overflow-anchor:none"><div id="text-diff-line-86" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="86" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="81" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="83" data-known-size="0" data-item-index="83" style="overflow-anchor:none"><div id="text-diff-line-87" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="87" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> date_default_timezone_set($C-&gt;DEF_TIMEZONE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="82" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> date_default_timezone_set($C-&gt;DEF_TIMEZONE); </span></div></div></div></div></div></div></div><div data-index="84" data-known-size="0" data-item-index="84" style="overflow-anchor:none"><div id="text-diff-line-88" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="88" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="83" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="85" data-known-size="0" data-item-index="85" style="overflow-anchor:none"><div id="text-diff-line-89" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="89" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( !isset($C-&gt;SITE_TITLE) || empty($C-&gt;SITE_TITLE) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="84" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( !isset($C-&gt;SITE_TITLE) || empty($C-&gt;SITE_TITLE) ) { </span></div></div></div></div></div></div></div><div data-index="86" data-known-size="0" data-item-index="86" style="overflow-anchor:none"><div id="text-diff-line-90" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="90" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;SITE_TITLE = &#x27;Sharetronix&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="85" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;SITE_TITLE = &#x27;Sharetronix&#x27;; </span></div></div></div></div></div></div></div><div data-index="87" data-known-size="0" data-item-index="87" style="overflow-anchor:none"><div id="text-diff-line-91" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="91" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="86" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="88" data-known-size="0" data-item-index="88" style="overflow-anchor:none"><div id="text-diff-line-92" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="92" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;OUTSIDE_SITE_TITLE = $C-&gt;SITE_TITLE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="87" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $C-&gt;OUTSIDE_SITE_TITLE = $C-&gt;SITE_TITLE; </span></div></div></div></div></div></div></div><div data-index="89" data-known-size="0" data-item-index="89" style="overflow-anchor:none"><div id="text-diff-line-93" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="93" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="88" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="90" data-known-size="0" data-item-index="90" style="overflow-anchor:none"><div id="text-diff-line-94" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="94" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="89" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="91" data-known-size="0" data-item-index="91" style="overflow-anchor:none"><div id="text-diff-line-95" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="95" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="90" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div></div></div></div></div><div data-index="92" data-known-size="0" data-item-index="92" style="overflow-anchor:none"><div id="text-diff-line-96" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="96" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="91" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="93" data-known-size="0" data-item-index="93" style="overflow-anchor:none"><div id="text-diff-line-97" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="97" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="92" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="94" data-known-size="0" data-item-index="94" style="overflow-anchor:none"><div id="text-diff-line-98" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="98" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="93" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="95" data-known-size="0" data-item-index="95" style="overflow-anchor:none"><div id="text-diff-line-99" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="99" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="94" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="96" data-known-size="0" data-item-index="96" style="overflow-anchor:none"><div id="text-diff-line-100" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="100" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($uname) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="95" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($uname) ) { </span></div></div></div></div></div></div></div><div data-index="97" data-known-size="0" data-item-index="97" style="overflow-anchor:none"><div id="text-diff-line-101" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="101" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="96" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="98" data-known-size="0" data-item-index="98" style="overflow-anchor:none"><div id="text-diff-line-102" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="102" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="97" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="99" data-known-size="0" data-item-index="99" style="overflow-anchor:none"><div id="text-diff-line-103" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="103" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,username:&#x27;.strtolower($uname); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="98" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,username:&#x27;.strtolower($uname); </span></div></div></div></div></div></div></div><div data-index="100" data-known-size="0" data-item-index="100" style="overflow-anchor:none"><div id="text-diff-line-104" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="104" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="99" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="101" data-known-size="0" data-item-index="101" style="overflow-anchor:none"><div id="text-diff-line-105" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="105" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="100" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="102" data-known-size="0" data-item-index="102" style="overflow-anchor:none"><div id="text-diff-line-106" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="106" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="101" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div></div></div></div></div><div data-index="103" data-known-size="0" data-item-index="103" style="overflow-anchor:none"><div id="text-diff-line-107" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="107" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="102" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="104" data-known-size="0" data-item-index="104" style="overflow-anchor:none"><div id="text-diff-line-108" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="108" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $uid = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="103" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $uid = FALSE; </span></div></div></div></div></div></div></div><div data-index="105" data-known-size="0" data-item-index="105" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-109" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="109" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE username=&quot;&#x27;.$this-&gt;db2-&gt;escape($uname).&#x27;&quot; </span><span class="diff-chunk_chunk__MRDHe undefined">LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="104" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE username=&quot;&#x27;.$this-&gt;db2-&gt;escape($uname).&#x27;&quot; </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">AND active=1 </span><span class="diff-chunk_chunk__MRDHe undefined">LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div></div></div></div><div data-index="106" data-known-size="0" data-item-index="106" style="overflow-anchor:none"><div id="text-diff-line-110" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="110" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="105" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div></div><div data-index="107" data-known-size="0" data-item-index="107" style="overflow-anchor:none"><div id="text-diff-line-111" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="111" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($o-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="106" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($o-&gt;id); </span></div></div></div></div></div></div></div><div data-index="108" data-known-size="0" data-item-index="108" style="overflow-anchor:none"><div id="text-diff-line-112" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="112" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="107" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="109" data-known-size="0" data-item-index="109" style="overflow-anchor:none"><div id="text-diff-line-113" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="113" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="108" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div></div></div></div></div><div data-index="110" data-known-size="0" data-item-index="110" style="overflow-anchor:none"><div id="text-diff-line-114" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="114" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="109" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="111" data-known-size="0" data-item-index="111" style="overflow-anchor:none"><div id="text-diff-line-115" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="115" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="110" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="112" data-known-size="0" data-item-index="112" style="overflow-anchor:none"><div id="text-diff-line-116" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="116" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="111" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="113" data-known-size="0" data-item-index="113" style="overflow-anchor:none"><div id="text-diff-line-117" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="117" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="112" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="114" data-known-size="0" data-item-index="114" style="overflow-anchor:none"><div id="text-diff-line-118" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="118" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="113" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="115" data-known-size="0" data-item-index="115" style="overflow-anchor:none"><div id="text-diff-line-119" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="119" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="114" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div></div></div></div></div><div data-index="116" data-known-size="0" data-item-index="116" style="overflow-anchor:none"><div id="text-diff-line-120" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="120" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="115" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="117" data-known-size="0" data-item-index="117" style="overflow-anchor:none"><div id="text-diff-line-121" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="121" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="116" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="118" data-known-size="0" data-item-index="118" style="overflow-anchor:none"><div id="text-diff-line-122" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="122" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="117" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="119" data-known-size="0" data-item-index="119" style="overflow-anchor:none"><div id="text-diff-line-123" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="123" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="118" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="120" data-known-size="0" data-item-index="120" style="overflow-anchor:none"><div id="text-diff-line-124" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="124" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! is_valid_email($email) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="119" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! is_valid_email($email) ) { </span></div></div></div></div></div></div></div><div data-index="121" data-known-size="0" data-item-index="121" style="overflow-anchor:none"><div id="text-diff-line-125" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="125" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="120" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="122" data-known-size="0" data-item-index="122" style="overflow-anchor:none"><div id="text-diff-line-126" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="126" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="121" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="123" data-known-size="0" data-item-index="123" style="overflow-anchor:none"><div id="text-diff-line-127" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="127" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usermail:&#x27;.strtolower($email); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="122" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usermail:&#x27;.strtolower($email); </span></div></div></div></div></div></div></div><div data-index="124" data-known-size="0" data-item-index="124" style="overflow-anchor:none"><div id="text-diff-line-128" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="128" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="123" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="125" data-known-size="0" data-item-index="125" style="overflow-anchor:none"><div id="text-diff-line-129" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="129" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="124" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="126" data-known-size="0" data-item-index="126" style="overflow-anchor:none"><div id="text-diff-line-130" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="130" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="125" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div></div></div></div></div><div data-index="127" data-known-size="0" data-item-index="127" style="overflow-anchor:none"><div id="text-diff-line-131" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="131" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="126" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="128" data-known-size="0" data-item-index="128" style="overflow-anchor:none"><div id="text-diff-line-132" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="132" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $uid = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="127" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $uid = FALSE; </span></div></div></div></div></div></div></div><div data-index="129" data-known-size="0" data-item-index="129" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-133" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="133" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE email=&quot;&#x27;.$this-&gt;db2-&gt;escape($email).&#x27;&quot; AND </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> sus_time&lt;&quot;&#x27;.time().&#x27;&quot; </span><span class="diff-chunk_chunk__MRDHe undefined"> LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="128" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE email=&quot;&#x27;.$this-&gt;db2-&gt;escape($email).&#x27;&quot; AND </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">active=1</span><span class="diff-chunk_chunk__MRDHe undefined"> LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div></div></div></div><div data-index="130" data-known-size="0" data-item-index="130" style="overflow-anchor:none"><div id="text-diff-line-134" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="134" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="129" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div></div><div data-index="131" data-known-size="0" data-item-index="131" style="overflow-anchor:none"><div id="text-diff-line-135" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="135" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($o-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="130" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($o-&gt;id); </span></div></div></div></div></div></div></div><div data-index="132" data-known-size="0" data-item-index="132" style="overflow-anchor:none"><div id="text-diff-line-136" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="136" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="131" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="133" data-known-size="0" data-item-index="133" style="overflow-anchor:none"><div id="text-diff-line-137" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="137" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="132" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $uid : $this-&gt;get_user_by_id($uid); </span></div></div></div></div></div></div></div><div data-index="134" data-known-size="0" data-item-index="134" style="overflow-anchor:none"><div id="text-diff-line-138" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="138" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="133" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="135" data-known-size="0" data-item-index="135" style="overflow-anchor:none"><div id="text-diff-line-139" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="139" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="134" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="136" data-known-size="0" data-item-index="136" style="overflow-anchor:none"><div id="text-diff-line-140" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="140" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="135" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="137" data-known-size="0" data-item-index="137" style="overflow-anchor:none"><div id="text-diff-line-141" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="141" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="136" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="138" data-known-size="0" data-item-index="138" style="overflow-anchor:none"><div id="text-diff-line-142" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="142" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="137" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="139" data-known-size="0" data-item-index="139" style="overflow-anchor:none"><div id="text-diff-line-143" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="143" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_id($uid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="138" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_by_id($uid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="140" data-known-size="0" data-item-index="140" style="overflow-anchor:none"><div id="text-diff-line-144" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="144" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="139" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="141" data-known-size="0" data-item-index="141" style="overflow-anchor:none"><div id="text-diff-line-145" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="145" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="140" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="142" data-known-size="0" data-item-index="142" style="overflow-anchor:none"><div id="text-diff-line-146" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="146" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="141" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="143" data-known-size="0" data-item-index="143" style="overflow-anchor:none"><div id="text-diff-line-147" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="147" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="142" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="144" data-known-size="0" data-item-index="144" style="overflow-anchor:none"><div id="text-diff-line-148" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="148" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="143" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div></div></div></div></div><div data-index="145" data-known-size="0" data-item-index="145" style="overflow-anchor:none"><div id="text-diff-line-149" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="149" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="144" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div></div></div></div></div><div data-index="146" data-known-size="0" data-item-index="146" style="overflow-anchor:none"><div id="text-diff-line-150" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="150" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="145" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="147" data-known-size="0" data-item-index="147" style="overflow-anchor:none"><div id="text-diff-line-151" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="151" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="146" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="148" data-known-size="0" data-item-index="148" style="overflow-anchor:none"><div id="text-diff-line-152" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="152" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="147" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="149" data-known-size="0" data-item-index="149" style="overflow-anchor:none"><div id="text-diff-line-153" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="153" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userid:&#x27;.$uid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="148" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userid:&#x27;.$uid; </span></div></div></div></div></div></div></div><div data-index="150" data-known-size="0" data-item-index="150" style="overflow-anchor:none"><div id="text-diff-line-154" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="154" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="149" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="151" data-known-size="0" data-item-index="151" style="overflow-anchor:none"><div id="text-diff-line-155" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="155" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="150" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="152" data-known-size="0" data-item-index="152" style="overflow-anchor:none"><div id="text-diff-line-156" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="156" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="151" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="153" data-known-size="0" data-item-index="153" style="overflow-anchor:none"><div id="text-diff-line-157" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="157" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="152" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="154" data-known-size="0" data-item-index="154" style="overflow-anchor:none"><div id="text-diff-line-158" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="158" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="153" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="155" data-known-size="0" data-item-index="155" style="overflow-anchor:none"><div id="text-diff-line-159" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="159" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="154" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="156" data-known-size="0" data-item-index="156" style="overflow-anchor:none"><div id="text-diff-line-160" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="160" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="155" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="157" data-known-size="0" data-item-index="157" style="overflow-anchor:none"><div id="text-diff-line-161" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="161" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="156" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="158" data-known-size="0" data-item-index="158" style="overflow-anchor:none"><div id="text-diff-line-162" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="162" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users WHERE id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="157" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users WHERE id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="159" data-known-size="0" data-item-index="159" style="overflow-anchor:none"><div id="text-diff-line-163" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="163" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="158" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="160" data-known-size="0" data-item-index="160" style="overflow-anchor:none"><div id="text-diff-line-164" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="164" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;active = intval($o-&gt;active); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="159" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;active = intval($o-&gt;active); </span></div></div></div></div></div></div></div><div data-index="161" data-known-size="0" data-item-index="161" style="overflow-anchor:none"><div id="text-diff-line-165" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="165" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;fullname = stripslashes($o-&gt;fullname); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="160" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;fullname = stripslashes($o-&gt;fullname); </span></div></div></div></div></div></div></div><div data-index="162" data-known-size="0" data-item-index="162" style="overflow-anchor:none"><div id="text-diff-line-166" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="166" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;about_me = stripslashes($o-&gt;about_me); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="161" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;about_me = stripslashes($o-&gt;about_me); </span></div></div></div></div></div></div></div><div data-index="163" data-known-size="0" data-item-index="163" style="overflow-anchor:none"><div id="text-diff-line-167" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="167" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;tags = trim(stripslashes($o-&gt;tags)); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="162" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;tags = trim(stripslashes($o-&gt;tags)); </span></div></div></div></div></div></div></div><div data-index="164" data-known-size="0" data-item-index="164" style="overflow-anchor:none"><div id="text-diff-line-168" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="168" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;tags = empty($o-&gt;tags) ? array() : explode(&#x27;, &#x27;, $o-&gt;tags); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="163" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;tags = empty($o-&gt;tags) ? array() : explode(&#x27;, &#x27;, $o-&gt;tags); </span></div></div></div></div></div></div></div><div data-index="165" data-known-size="0" data-item-index="165" style="overflow-anchor:none"><div id="text-diff-line-169" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="169" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> if( empty($o-&gt;avatar) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="164" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> if( empty($o-&gt;avatar) ) { </span></div></div></div></div></div></div></div><div data-index="166" data-known-size="0" data-item-index="166" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-170" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="170" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> if($o-&gt;gender==&#x27;m&#x27;){ </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="165" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; </span></div></div></div></div></div></div><div id="text-diff-line-171" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="171" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_MUSER; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-172" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="172" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">}elseif($o-&gt;gender==&#x27;f&#x27;){ </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-173" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="173" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_FUSER; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-174" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="174" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">}else{ </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-175" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="175" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-176" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="176" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">} </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="167" data-known-size="0" data-item-index="167" style="overflow-anchor:none"><div id="text-diff-line-177" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="177" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="166" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="168" data-known-size="0" data-item-index="168" style="overflow-anchor:none"><div id="text-diff-line-178" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="178" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age = &#x27;&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="167" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age = &#x27;&#x27;; </span></div></div></div></div></div></div></div><div data-index="169" data-known-size="0" data-item-index="169" style="overflow-anchor:none"><div id="text-diff-line-179" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="179" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_day = intval( substr($o-&gt;birthdate, 8, 2) ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="168" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_day = intval( substr($o-&gt;birthdate, 8, 2) ); </span></div></div></div></div></div></div></div><div data-index="170" data-known-size="0" data-item-index="170" style="overflow-anchor:none"><div id="text-diff-line-180" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="180" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_month = intval( substr($o-&gt;birthdate, 5, 2) ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="169" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_month = intval( substr($o-&gt;birthdate, 5, 2) ); </span></div></div></div></div></div></div></div><div data-index="171" data-known-size="0" data-item-index="171" style="overflow-anchor:none"><div id="text-diff-line-181" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="181" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_year = intval( substr($o-&gt;birthdate, 0, 4) ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="170" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $bd_year = intval( substr($o-&gt;birthdate, 0, 4) ); </span></div></div></div></div></div></div></div><div data-index="172" data-known-size="0" data-item-index="172" style="overflow-anchor:none"><div id="text-diff-line-182" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="182" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $bd_day&gt;0 &amp;&amp; $bd_month&gt;0 &amp;&amp; $bd_year&gt;0 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="171" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $bd_day&gt;0 &amp;&amp; $bd_month&gt;0 &amp;&amp; $bd_year&gt;0 ) { </span></div></div></div></div></div></div></div><div data-index="173" data-known-size="0" data-item-index="173" style="overflow-anchor:none"><div id="text-diff-line-183" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="183" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( date(&#x27;Y&#x27;) &gt; $bd_year ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="172" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( date(&#x27;Y&#x27;) &gt; $bd_year ) { </span></div></div></div></div></div></div></div><div data-index="174" data-known-size="0" data-item-index="174" style="overflow-anchor:none"><div id="text-diff-line-184" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="184" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age = date(&#x27;Y&#x27;) - $bd_year; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="173" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age = date(&#x27;Y&#x27;) - $bd_year; </span></div></div></div></div></div></div></div><div data-index="175" data-known-size="0" data-item-index="175" style="overflow-anchor:none"><div id="text-diff-line-185" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="185" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $bd_month&gt;date(&#x27;m&#x27;) || ($bd_month==date(&#x27;m&#x27;) &amp;&amp; $bd_day&gt;date(&#x27;d&#x27;)) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="174" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $bd_month&gt;date(&#x27;m&#x27;) || ($bd_month==date(&#x27;m&#x27;) &amp;&amp; $bd_day&gt;date(&#x27;d&#x27;)) ) { </span></div></div></div></div></div></div></div><div data-index="176" data-known-size="0" data-item-index="176" style="overflow-anchor:none"><div id="text-diff-line-186" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="186" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age --; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="175" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;age --; </span></div></div></div></div></div></div></div><div data-index="177" data-known-size="0" data-item-index="177" style="overflow-anchor:none"><div id="text-diff-line-187" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="187" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="176" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="178" data-known-size="0" data-item-index="178" style="overflow-anchor:none"><div id="text-diff-line-188" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="188" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="177" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="179" data-known-size="0" data-item-index="179" style="overflow-anchor:none"><div id="text-diff-line-189" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="189" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="178" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="180" data-known-size="0" data-item-index="180" style="overflow-anchor:none"><div id="text-diff-line-190" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="190" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;position = stripslashes($o-&gt;position); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="179" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;position = stripslashes($o-&gt;position); </span></div></div></div></div></div></div></div><div data-index="181" data-known-size="0" data-item-index="181" style="overflow-anchor:none"><div id="text-diff-line-191" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="191" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;location = stripslashes($o-&gt;location); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="180" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;location = stripslashes($o-&gt;location); </span></div></div></div></div></div></div></div><div data-index="182" data-known-size="0" data-item-index="182" style="overflow-anchor:none"><div id="text-diff-line-192" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="192" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;network_id = $this-&gt;id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="181" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;network_id = $this-&gt;id; </span></div></div></div></div></div></div></div><div data-index="183" data-known-size="0" data-item-index="183" style="overflow-anchor:none"><div id="text-diff-line-193" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="193" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="182" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details = FALSE; </span></div></div></div></div></div></div></div><div data-index="184" data-known-size="0" data-item-index="184" style="overflow-anchor:none"><div id="text-diff-line-194" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="194" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $rr = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_details WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="183" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $rr = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_details WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="185" data-known-size="0" data-item-index="185" style="overflow-anchor:none"><div id="text-diff-line-195" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="195" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $ud = $this-&gt;db2-&gt;fetch_object($rr) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="184" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $ud = $this-&gt;db2-&gt;fetch_object($rr) ) { </span></div></div></div></div></div></div></div><div data-index="186" data-known-size="0" data-item-index="186" style="overflow-anchor:none"><div id="text-diff-line-196" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="196" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="185" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details = new stdClass; </span></div></div></div></div></div></div></div><div data-index="187" data-known-size="0" data-item-index="187" style="overflow-anchor:none"><div id="text-diff-line-197" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="197" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($ud as $k=&gt;$v) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="186" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($ud as $k=&gt;$v) { </span></div></div></div></div></div></div></div><div data-index="188" data-known-size="0" data-item-index="188" style="overflow-anchor:none"><div id="text-diff-line-198" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="198" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details-&gt;$k = stripslashes($v); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="187" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;user_details-&gt;$k = stripslashes($v); </span></div></div></div></div></div></div></div><div data-index="189" data-known-size="0" data-item-index="189" style="overflow-anchor:none"><div id="text-diff-line-199" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="199" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="188" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="190" data-known-size="0" data-item-index="190" style="overflow-anchor:none"><div id="text-diff-line-200" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="200" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="189" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="191" data-known-size="0" data-item-index="191" style="overflow-anchor:none"><div id="text-diff-line-201" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="201" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="190" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="192" data-known-size="0" data-item-index="192" style="overflow-anchor:none"><div id="text-diff-line-202" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="202" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="191" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div></div></div></div></div><div data-index="193" data-known-size="0" data-item-index="193" style="overflow-anchor:none"><div id="text-diff-line-203" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="203" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="192" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div></div></div></div></div><div data-index="194" data-known-size="0" data-item-index="194" style="overflow-anchor:none"><div id="text-diff-line-204" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="204" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="193" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="195" data-known-size="0" data-item-index="195" style="overflow-anchor:none"><div id="text-diff-line-205" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="205" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="194" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="196" data-known-size="0" data-item-index="196" style="overflow-anchor:none"><div id="text-diff-line-206" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="206" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="195" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="197" data-known-size="0" data-item-index="197" style="overflow-anchor:none"><div id="text-diff-line-207" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="207" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="196" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="198" data-known-size="0" data-item-index="198" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-208" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="208" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="197" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> ////////////////////////</span><span class="diff-chunk_chunk__MRDHe undefined"> User Like /////////////////////////// </span></div></div></div></div></div></div><div id="text-diff-line-209" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="209" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-210" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="210" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">////////////////////////</span><span class="diff-chunk_chunk__MRDHe undefined"> User Like /////////////////////////// </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="199" data-known-size="0" data-item-index="199" style="overflow-anchor:none"><div id="text-diff-line-211" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="211" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> public function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="198" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> public function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE) </span></div></div></div></div></div></div></div><div data-index="200" data-known-size="0" data-item-index="200" style="overflow-anchor:none"><div id="text-diff-line-212" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="212" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="199" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="201" data-known-size="0" data-item-index="201" style="overflow-anchor:none"><div id="text-diff-line-213" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="213" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="200" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="202" data-known-size="0" data-item-index="202" style="overflow-anchor:none"><div id="text-diff-line-214" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="214" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="201" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="203" data-known-size="0" data-item-index="203" style="overflow-anchor:none"><div id="text-diff-line-215" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="215" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="202" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="204" data-known-size="0" data-item-index="204" style="overflow-anchor:none"><div id="text-diff-line-216" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="216" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="203" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div></div></div></div></div><div data-index="205" data-known-size="0" data-item-index="205" style="overflow-anchor:none"><div id="text-diff-line-217" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="217" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="204" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div></div></div></div></div><div data-index="206" data-known-size="0" data-item-index="206" style="overflow-anchor:none"><div id="text-diff-line-218" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="218" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="205" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="207" data-known-size="0" data-item-index="207" style="overflow-anchor:none"><div id="text-diff-line-219" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="219" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="206" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="208" data-known-size="0" data-item-index="208" style="overflow-anchor:none"><div id="text-diff-line-220" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="220" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="207" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="209" data-known-size="0" data-item-index="209" style="overflow-anchor:none"><div id="text-diff-line-221" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="221" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userlikes:&#x27;.$uid.($type ? &#x27;,type:&#x27;.$type : &#x27;&#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="208" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userlikes:&#x27;.$uid.($type ? &#x27;,type:&#x27;.$type : &#x27;&#x27;); </span></div></div></div></div></div></div></div><div data-index="210" data-known-size="0" data-item-index="210" style="overflow-anchor:none"><div id="text-diff-line-222" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="222" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="209" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="211" data-known-size="0" data-item-index="211" style="overflow-anchor:none"><div id="text-diff-line-223" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="223" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="210" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="212" data-known-size="0" data-item-index="212" style="overflow-anchor:none"><div id="text-diff-line-224" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="224" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="211" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="213" data-known-size="0" data-item-index="213" style="overflow-anchor:none"><div id="text-diff-line-225" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="225" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="212" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="214" data-known-size="0" data-item-index="214" style="overflow-anchor:none"><div id="text-diff-line-226" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="226" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="213" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="215" data-known-size="0" data-item-index="215" style="overflow-anchor:none"><div id="text-diff-line-227" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="227" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="214" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="216" data-known-size="0" data-item-index="216" style="overflow-anchor:none"><div id="text-diff-line-228" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="228" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="215" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="217" data-known-size="0" data-item-index="217" style="overflow-anchor:none"><div id="text-diff-line-229" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="229" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="216" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="218" data-known-size="0" data-item-index="218" style="overflow-anchor:none"><div id="text-diff-line-230" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="230" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="217" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="219" data-known-size="0" data-item-index="219" style="overflow-anchor:none"><div id="text-diff-line-231" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="231" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="218" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = new stdClass; </span></div></div></div></div></div></div></div><div data-index="220" data-known-size="0" data-item-index="220" style="overflow-anchor:none"><div id="text-diff-line-232" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="232" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;likers = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="219" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;likers = array(); </span></div></div></div></div></div></div></div><div data-index="221" data-known-size="0" data-item-index="221" style="overflow-anchor:none"><div id="text-diff-line-233" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="233" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;like_users = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="220" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;like_users = array(); </span></div></div></div></div></div></div></div><div data-index="222" data-known-size="0" data-item-index="222" style="overflow-anchor:none"><div id="text-diff-line-234" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="234" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="221" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="223" data-known-size="0" data-item-index="223" style="overflow-anchor:none"><div id="text-diff-line-235" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="235" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ($type &amp;&amp; $type == &#x27;hislikers&#x27;) || ($type === FALSE) ){ </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="222" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ($type &amp;&amp; $type == &#x27;hislikers&#x27;) || ($type === FALSE) ){ </span></div></div></div></div></div></div></div><div data-index="224" data-known-size="0" data-item-index="224" style="overflow-anchor:none"><div id="text-diff-line-236" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="236" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_liked WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="223" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_liked WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="225" data-known-size="0" data-item-index="225" style="overflow-anchor:none"><div id="text-diff-line-237" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="237" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="224" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="226" data-known-size="0" data-item-index="226" style="overflow-anchor:none"><div id="text-diff-line-238" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="238" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;likers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="225" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;likers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; </span></div></div></div></div></div></div></div><div data-index="227" data-known-size="0" data-item-index="227" style="overflow-anchor:none"><div id="text-diff-line-239" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="239" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="226" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="228" data-known-size="0" data-item-index="228" style="overflow-anchor:none"><div id="text-diff-line-240" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="240" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="227" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="229" data-known-size="0" data-item-index="229" style="overflow-anchor:none"><div id="text-diff-line-241" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="241" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ($type &amp;&amp; $type == &#x27;helikes&#x27;) || ($type === FALSE) ){ </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="228" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ($type &amp;&amp; $type == &#x27;helikes&#x27;) || ($type === FALSE) ){ </span></div></div></div></div></div></div></div><div data-index="230" data-known-size="0" data-item-index="230" style="overflow-anchor:none"><div id="text-diff-line-242" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="242" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_liked WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="229" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_liked WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="231" data-known-size="0" data-item-index="231" style="overflow-anchor:none"><div id="text-diff-line-243" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="243" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="230" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="232" data-known-size="0" data-item-index="232" style="overflow-anchor:none"><div id="text-diff-line-244" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="244" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;like_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="231" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;like_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; </span></div></div></div></div></div></div></div><div data-index="233" data-known-size="0" data-item-index="233" style="overflow-anchor:none"><div id="text-diff-line-245" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="245" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="232" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="234" data-known-size="0" data-item-index="234" style="overflow-anchor:none"><div id="text-diff-line-246" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="246" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="233" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="235" data-known-size="0" data-item-index="235" style="overflow-anchor:none"><div id="text-diff-line-247" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="247" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="234" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="236" data-known-size="0" data-item-index="236" style="overflow-anchor:none"><div id="text-diff-line-248" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="248" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="235" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="237" data-known-size="0" data-item-index="237" style="overflow-anchor:none"><div id="text-diff-line-249" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="249" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="236" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="238" data-known-size="0" data-item-index="238" style="overflow-anchor:none"><div id="text-diff-line-250" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="250" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="237" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="239" data-known-size="0" data-item-index="239" style="overflow-anchor:none"><div id="text-diff-line-251" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="251" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="238" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="240" data-known-size="0" data-item-index="240" style="overflow-anchor:none"><div id="text-diff-line-252" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="252" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="239" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="241" data-known-size="0" data-item-index="241" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-253" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="253" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="242" data-known-size="0" data-item-index="242" style="overflow-anchor:none"><div id="text-diff-line-254" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="254" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe">///////////////////////// User Like ///////////////////////////// </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="240" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe">///////////////////////// User Like ///////////////////////////// </span></div></div></div></div></div></div></div><div data-index="243" data-known-size="0" data-item-index="243" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-255" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="255" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-256" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="256" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-257" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="257" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="244" data-known-size="0" data-item-index="244" style="overflow-anchor:none"><div id="text-diff-line-258" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="258" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> public function get_user_follows($uid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="241" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> public function get_user_follows($uid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="245" data-known-size="0" data-item-index="245" style="overflow-anchor:none"><div id="text-diff-line-259" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="259" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="242" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="246" data-known-size="0" data-item-index="246" style="overflow-anchor:none"><div id="text-diff-line-260" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="260" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="243" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="247" data-known-size="0" data-item-index="247" style="overflow-anchor:none"><div id="text-diff-line-261" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="261" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="244" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="248" data-known-size="0" data-item-index="248" style="overflow-anchor:none"><div id="text-diff-line-262" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="262" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="245" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="249" data-known-size="0" data-item-index="249" style="overflow-anchor:none"><div id="text-diff-line-263" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="263" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="246" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $uid = intval($uid); </span></div></div></div></div></div></div></div><div data-index="250" data-known-size="0" data-item-index="250" style="overflow-anchor:none"><div id="text-diff-line-264" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="264" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="247" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $uid ) { </span></div></div></div></div></div></div></div><div data-index="251" data-known-size="0" data-item-index="251" style="overflow-anchor:none"><div id="text-diff-line-265" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="265" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="248" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="252" data-known-size="0" data-item-index="252" style="overflow-anchor:none"><div id="text-diff-line-266" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="266" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="249" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="253" data-known-size="0" data-item-index="253" style="overflow-anchor:none"><div id="text-diff-line-267" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="267" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="250" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="254" data-known-size="0" data-item-index="254" style="overflow-anchor:none"><div id="text-diff-line-268" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="268" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userfollows:&#x27;.$uid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="251" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userfollows:&#x27;.$uid; </span></div></div></div></div></div></div></div><div data-index="255" data-known-size="0" data-item-index="255" style="overflow-anchor:none"><div id="text-diff-line-269" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="269" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="252" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="256" data-known-size="0" data-item-index="256" style="overflow-anchor:none"><div id="text-diff-line-270" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="270" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="253" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="257" data-known-size="0" data-item-index="257" style="overflow-anchor:none"><div id="text-diff-line-271" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="271" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="254" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="258" data-known-size="0" data-item-index="258" style="overflow-anchor:none"><div id="text-diff-line-272" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="272" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="255" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="259" data-known-size="0" data-item-index="259" style="overflow-anchor:none"><div id="text-diff-line-273" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="273" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="256" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="260" data-known-size="0" data-item-index="260" style="overflow-anchor:none"><div id="text-diff-line-274" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="274" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="257" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="261" data-known-size="0" data-item-index="261" style="overflow-anchor:none"><div id="text-diff-line-275" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="275" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="258" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="262" data-known-size="0" data-item-index="262" style="overflow-anchor:none"><div id="text-diff-line-276" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="276" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="259" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="263" data-known-size="0" data-item-index="263" style="overflow-anchor:none"><div id="text-diff-line-277" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="277" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = new stdClass; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="260" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = new stdClass; </span></div></div></div></div></div></div></div><div data-index="264" data-known-size="0" data-item-index="264" style="overflow-anchor:none"><div id="text-diff-line-278" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="278" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;followers = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="261" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;followers = array(); </span></div></div></div></div></div></div></div><div data-index="265" data-known-size="0" data-item-index="265" style="overflow-anchor:none"><div id="text-diff-line-279" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="279" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_users = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="262" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_users = array(); </span></div></div></div></div></div></div></div><div data-index="266" data-known-size="0" data-item-index="266" style="overflow-anchor:none"><div id="text-diff-line-280" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="280" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_groups = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="263" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_groups = array(); </span></div></div></div></div></div></div></div><div data-index="267" data-known-size="0" data-item-index="267" style="overflow-anchor:none"><div id="text-diff-line-281" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="281" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_followed WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="264" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_followed WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="268" data-known-size="0" data-item-index="268" style="overflow-anchor:none"><div id="text-diff-line-282" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="282" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="265" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="269" data-known-size="0" data-item-index="269" style="overflow-anchor:none"><div id="text-diff-line-283" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="283" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;followers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="266" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;followers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; </span></div></div></div></div></div></div></div><div data-index="270" data-known-size="0" data-item-index="270" style="overflow-anchor:none"><div id="text-diff-line-284" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="284" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="267" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="271" data-known-size="0" data-item-index="271" style="overflow-anchor:none"><div id="text-diff-line-285" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="285" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_followed WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="268" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_followed WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="272" data-known-size="0" data-item-index="272" style="overflow-anchor:none"><div id="text-diff-line-286" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="286" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="269" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="273" data-known-size="0" data-item-index="273" style="overflow-anchor:none"><div id="text-diff-line-287" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="287" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="270" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; </span></div></div></div></div></div></div></div><div data-index="274" data-known-size="0" data-item-index="274" style="overflow-anchor:none"><div id="text-diff-line-288" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="288" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="271" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="275" data-known-size="0" data-item-index="275" style="overflow-anchor:none"><div id="text-diff-line-289" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="289" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="272" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="276" data-known-size="0" data-item-index="276" style="overflow-anchor:none"><div id="text-diff-line-290" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="290" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="273" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="277" data-known-size="0" data-item-index="277" style="overflow-anchor:none"><div id="text-diff-line-291" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="291" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_groups[intval($o-&gt;group_id)] = $o-&gt;group_from_postid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="274" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;follow_groups[intval($o-&gt;group_id)] = $o-&gt;group_from_postid; </span></div></div></div></div></div></div></div><div data-index="278" data-known-size="0" data-item-index="278" style="overflow-anchor:none"><div id="text-diff-line-292" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="292" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="275" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="279" data-known-size="0" data-item-index="279" style="overflow-anchor:none"><div id="text-diff-line-293" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="293" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="276" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="280" data-known-size="0" data-item-index="280" style="overflow-anchor:none"><div id="text-diff-line-294" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="294" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="277" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="281" data-known-size="0" data-item-index="281" style="overflow-anchor:none"><div id="text-diff-line-295" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="295" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="278" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="282" data-known-size="0" data-item-index="282" style="overflow-anchor:none"><div id="text-diff-line-296" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="296" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="279" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="283" data-known-size="0" data-item-index="283" style="overflow-anchor:none"><div id="text-diff-line-297" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="297" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="280" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="284" data-known-size="0" data-item-index="284" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-298" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="298" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> public</span><span class="diff-chunk_chunk__MRDHe undefined"> function get_mostactive_users($force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="281" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> public</span><span class="diff-chunk_chunk__MRDHe undefined"> function get_mostactive_users($force_refresh=FALSE) </span></div></div></div></div></div></div></div></div></div></div><div data-index="285" data-known-size="0" data-item-index="285" style="overflow-anchor:none"><div id="text-diff-line-299" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="299" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="282" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="286" data-known-size="0" data-item-index="286" style="overflow-anchor:none"><div id="text-diff-line-300" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="300" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="283" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="287" data-known-size="0" data-item-index="287" style="overflow-anchor:none"><div id="text-diff-line-301" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="301" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="284" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="288" data-known-size="0" data-item-index="288" style="overflow-anchor:none"><div id="text-diff-line-302" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="302" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="285" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="289" data-known-size="0" data-item-index="289" style="overflow-anchor:none"><div id="text-diff-line-303" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="303" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_userz&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="286" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_userz&#x27;; </span></div></div></div></div></div></div></div><div data-index="290" data-known-size="0" data-item-index="290" style="overflow-anchor:none"><div id="text-diff-line-304" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="304" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="287" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="291" data-known-size="0" data-item-index="291" style="overflow-anchor:none"><div id="text-diff-line-305" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="305" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="288" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="292" data-known-size="0" data-item-index="292" style="overflow-anchor:none"><div id="text-diff-line-306" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="306" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="289" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="293" data-known-size="0" data-item-index="293" style="overflow-anchor:none"><div id="text-diff-line-307" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="307" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="290" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="294" data-known-size="0" data-item-index="294" style="overflow-anchor:none"><div id="text-diff-line-308" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="308" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="291" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="295" data-known-size="0" data-item-index="295" style="overflow-anchor:none"><div id="text-diff-line-309" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="309" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $days = 5; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="292" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $days = 5; </span></div></div></div></div></div></div></div><div data-index="296" data-known-size="0" data-item-index="296" style="overflow-anchor:none"><div id="text-diff-line-310" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="310" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $num = 20; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="293" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $num = 20; </span></div></div></div></div></div></div></div><div data-index="297" data-known-size="0" data-item-index="297" style="overflow-anchor:none"><div id="text-diff-line-311" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="311" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT &#x27;.$num); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="294" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT &#x27;.$num); </span></div></div></div></div></div></div></div><div data-index="298" data-known-size="0" data-item-index="298" style="overflow-anchor:none"><div id="text-diff-line-312" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="312" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="295" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div></div></div></div></div><div data-index="299" data-known-size="0" data-item-index="299" style="overflow-anchor:none"><div id="text-diff-line-313" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="313" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="296" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;user_id); </span></div></div></div></div></div></div></div><div data-index="300" data-known-size="0" data-item-index="300" style="overflow-anchor:none"><div id="text-diff-line-314" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="314" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="297" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="301" data-known-size="0" data-item-index="301" style="overflow-anchor:none"><div id="text-diff-line-315" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="315" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="298" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="302" data-known-size="0" data-item-index="302" style="overflow-anchor:none"><div id="text-diff-line-316" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="316" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="299" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="303" data-known-size="0" data-item-index="303" style="overflow-anchor:none"><div id="text-diff-line-317" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="317" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="300" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="304" data-known-size="0" data-item-index="304" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-318" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="318" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_empty__KgW5M"></div></div></div></div></div></div><div id="text-diff-line-319" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="319" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="305" data-known-size="0" data-item-index="305" style="overflow-anchor:none"><div id="text-diff-line-320" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="320" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="301" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="306" data-known-size="0" data-item-index="306" style="overflow-anchor:none"><div id="text-diff-line-321" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="321" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_latest_users($force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="302" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_latest_users($force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="307" data-known-size="0" data-item-index="307" style="overflow-anchor:none"><div id="text-diff-line-322" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="322" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="303" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="308" data-known-size="0" data-item-index="308" style="overflow-anchor:none"><div id="text-diff-line-323" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="323" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="304" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="309" data-known-size="0" data-item-index="309" style="overflow-anchor:none"><div id="text-diff-line-324" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="324" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="305" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="310" data-known-size="0" data-item-index="310" style="overflow-anchor:none"><div id="text-diff-line-325" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="325" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="306" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="311" data-known-size="0" data-item-index="311" style="overflow-anchor:none"><div id="text-diff-line-326" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="326" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_userz&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="307" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_userz&#x27;; </span></div></div></div></div></div></div></div><div data-index="312" data-known-size="0" data-item-index="312" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-327" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="327" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="308" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">$cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div></div></div></div><div data-index="313" data-known-size="0" data-item-index="313" style="overflow-anchor:none"><div id="text-diff-line-328" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="328" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="309" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="314" data-known-size="0" data-item-index="314" style="overflow-anchor:none"><div id="text-diff-line-329" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="329" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="310" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="315" data-known-size="0" data-item-index="315" style="overflow-anchor:none"><div id="text-diff-line-330" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="330" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="311" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="316" data-known-size="0" data-item-index="316" style="overflow-anchor:none"><div id="text-diff-line-331" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="331" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="312" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="317" data-known-size="0" data-item-index="317" style="overflow-anchor:none"><div id="text-diff-line-332" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="332" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $num = 20; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="313" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $num = 20; </span></div></div></div></div></div></div></div><div data-index="318" data-known-size="0" data-item-index="318" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-333" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="333" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE active=1 </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> OR sus_time&lt;&quot;&#x27;.time().&#x27;&quot; </span><span class="diff-chunk_chunk__MRDHe undefined">ORDER BY id DESC LIMIT &#x27;.$num); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="314" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE active=1 </span><span class="diff-chunk_chunk__MRDHe undefined">ORDER BY id DESC LIMIT &#x27;.$num); </span></div></div></div></div></div></div></div></div></div></div><div data-index="319" data-known-size="0" data-item-index="319" style="overflow-anchor:none"><div id="text-diff-line-334" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="334" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="315" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div></div></div></div></div><div data-index="320" data-known-size="0" data-item-index="320" style="overflow-anchor:none"><div id="text-diff-line-335" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="335" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="316" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;id); </span></div></div></div></div></div></div></div><div data-index="321" data-known-size="0" data-item-index="321" style="overflow-anchor:none"><div id="text-diff-line-336" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="336" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="317" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="322" data-known-size="0" data-item-index="322" style="overflow-anchor:none"><div id="text-diff-line-337" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="337" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="318" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="323" data-known-size="0" data-item-index="323" style="overflow-anchor:none"><div id="text-diff-line-338" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="338" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="319" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="324" data-known-size="0" data-item-index="324" style="overflow-anchor:none"><div id="text-diff-line-339" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="339" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="320" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="325" data-known-size="0" data-item-index="325" style="overflow-anchor:none"><div id="text-diff-line-340" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="340" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="321" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="326" data-known-size="0" data-item-index="326" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-341" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="341" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> public</span><span class="diff-chunk_chunk__MRDHe undefined"> function get_online_users($force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="322" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> public</span><span class="diff-chunk_chunk__MRDHe undefined"> function get_online_users($force_refresh=FALSE) </span></div></div></div></div></div></div></div></div></div></div><div data-index="327" data-known-size="0" data-item-index="327" style="overflow-anchor:none"><div id="text-diff-line-342" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="342" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="323" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="328" data-known-size="0" data-item-index="328" style="overflow-anchor:none"><div id="text-diff-line-343" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="343" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="324" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="329" data-known-size="0" data-item-index="329" style="overflow-anchor:none"><div id="text-diff-line-344" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="344" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="325" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="330" data-known-size="0" data-item-index="330" style="overflow-anchor:none"><div id="text-diff-line-345" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="345" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="326" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="331" data-known-size="0" data-item-index="331" style="overflow-anchor:none"><div id="text-diff-line-346" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="346" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,online_userz&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="327" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,online_userz&#x27;; </span></div></div></div></div></div></div></div><div data-index="332" data-known-size="0" data-item-index="332" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-347" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="347" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="328" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">$cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div></div></div></div><div data-index="333" data-known-size="0" data-item-index="333" style="overflow-anchor:none"><div id="text-diff-line-348" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="348" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="329" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="334" data-known-size="0" data-item-index="334" style="overflow-anchor:none"><div id="text-diff-line-349" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="349" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="330" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="335" data-known-size="0" data-item-index="335" style="overflow-anchor:none"><div id="text-diff-line-350" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="350" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="331" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="336" data-known-size="0" data-item-index="336" style="overflow-anchor:none"><div id="text-diff-line-351" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="351" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="332" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="337" data-known-size="0" data-item-index="337" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-352" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="352" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $num = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">30; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="333" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $num = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">20; </span><span class="diff-chunk_chunk__MRDHe undefined"></span></div></div></div></div></div></div><div id="text-diff-line-353" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="353" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> $time = 15*60; </span><span class="diff-chunk_chunk__MRDHe undefined"></span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="334" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $this-&gt;db2-&gt;query(&#x27;SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">&#x27;.$num); </span></div></div></div></div></div></div><div id="text-diff-line-354" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="354" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $this-&gt;db2-&gt;query(&#x27;SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">&#x27;.($num+1)); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="338" data-known-size="0" data-item-index="338" style="overflow-anchor:none"><div id="text-diff-line-355" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="355" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="335" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div></div></div></div></div><div data-index="339" data-known-size="0" data-item-index="339" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-356" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="356" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> if( $obj-&gt;lastclick_date &lt; </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">time() - $time</span><span class="diff-chunk_chunk__MRDHe undefined"> ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="336" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> if( $obj-&gt;lastclick_date &lt; </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">time()-30*60</span><span class="diff-chunk_chunk__MRDHe undefined"> ) { </span></div></div></div></div></div></div></div></div></div></div><div data-index="340" data-known-size="0" data-item-index="340" style="overflow-anchor:none"><div id="text-diff-line-357" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="357" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> break; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="337" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> break; </span></div></div></div></div></div></div></div><div data-index="341" data-known-size="0" data-item-index="341" style="overflow-anchor:none"><div id="text-diff-line-358" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="358" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="338" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="342" data-known-size="0" data-item-index="342" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-359" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="359" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data[] = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">$this-&gt;get_user_by_id($obj-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="339" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $data[] = </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">intval($obj-&gt;id); </span></div></div></div></div></div></div></div></div></div></div><div data-index="343" data-known-size="0" data-item-index="343" style="overflow-anchor:none"><div id="text-diff-line-360" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="360" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="340" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="344" data-known-size="0" data-item-index="344" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-361" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="361" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> $data = array_slice($data, 0, $num); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="341" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div><div id="text-diff-line-362" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="362" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> $this-&gt;cache-&gt;set( $cachekey, $data, 10*60 ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div></div></div></div></div></div></div></div><div data-index="345" data-known-size="0" data-item-index="345" style="overflow-anchor:none"><div id="text-diff-line-363" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="363" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="342" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="346" data-known-size="0" data-item-index="346" style="overflow-anchor:none"><div id="text-diff-line-364" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="364" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="343" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="347" data-known-size="0" data-item-index="347" style="overflow-anchor:none"><div id="text-diff-line-365" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="365" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="344" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="348" data-known-size="0" data-item-index="348" style="overflow-anchor:none"><div id="text-diff-line-366" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="366" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="345" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE) </span></div></div></div></div></div></div></div><div data-index="349" data-known-size="0" data-item-index="349" style="overflow-anchor:none"><div id="text-diff-line-367" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="367" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="346" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="350" data-known-size="0" data-item-index="350" style="overflow-anchor:none"><div id="text-diff-line-368" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="368" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="347" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="351" data-known-size="0" data-item-index="351" style="overflow-anchor:none"><div id="text-diff-line-369" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="369" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="348" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="352" data-known-size="0" data-item-index="352" style="overflow-anchor:none"><div id="text-diff-line-370" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="370" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="349" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="353" data-known-size="0" data-item-index="353" style="overflow-anchor:none"><div id="text-diff-line-371" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="371" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($gname) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="350" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($gname) ) { </span></div></div></div></div></div></div></div><div data-index="354" data-known-size="0" data-item-index="354" style="overflow-anchor:none"><div id="text-diff-line-372" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="372" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="351" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="355" data-known-size="0" data-item-index="355" style="overflow-anchor:none"><div id="text-diff-line-373" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="373" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="352" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="356" data-known-size="0" data-item-index="356" style="overflow-anchor:none"><div id="text-diff-line-374" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="374" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupname:&#x27;.strtolower($gname); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="353" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupname:&#x27;.strtolower($gname); </span></div></div></div></div></div></div></div><div data-index="357" data-known-size="0" data-item-index="357" style="overflow-anchor:none"><div id="text-diff-line-375" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="375" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="354" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="358" data-known-size="0" data-item-index="358" style="overflow-anchor:none"><div id="text-diff-line-376" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="376" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$gid &amp;&amp; TRUE!=$gid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="355" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$gid &amp;&amp; TRUE!=$gid ) { </span></div></div></div></div></div></div></div><div data-index="359" data-known-size="0" data-item-index="359" style="overflow-anchor:none"><div id="text-diff-line-377" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="377" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $gid : $this-&gt;get_group_by_id($gid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="356" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $gid : $this-&gt;get_group_by_id($gid); </span></div></div></div></div></div></div></div><div data-index="360" data-known-size="0" data-item-index="360" style="overflow-anchor:none"><div id="text-diff-line-378" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="378" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="357" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="361" data-known-size="0" data-item-index="361" style="overflow-anchor:none"><div id="text-diff-line-379" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="379" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="358" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = FALSE; </span></div></div></div></div></div></div></div><div data-index="362" data-known-size="0" data-item-index="362" style="overflow-anchor:none"><div id="text-diff-line-380" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="380" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM groups WHERE groupname=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; OR title=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="359" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM groups WHERE groupname=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; OR title=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="363" data-known-size="0" data-item-index="363" style="overflow-anchor:none"><div id="text-diff-line-381" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="381" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="360" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div></div><div data-index="364" data-known-size="0" data-item-index="364" style="overflow-anchor:none"><div id="text-diff-line-382" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="382" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($o-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="361" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($o-&gt;id); </span></div></div></div></div></div></div></div><div data-index="365" data-known-size="0" data-item-index="365" style="overflow-anchor:none"><div id="text-diff-line-383" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="383" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $gid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="362" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $gid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="366" data-known-size="0" data-item-index="366" style="overflow-anchor:none"><div id="text-diff-line-384" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="384" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $gid : $this-&gt;get_group_by_id($gid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="363" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $return_id ? $gid : $this-&gt;get_group_by_id($gid); </span></div></div></div></div></div></div></div><div data-index="367" data-known-size="0" data-item-index="367" style="overflow-anchor:none"><div id="text-diff-line-385" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="385" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="364" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="368" data-known-size="0" data-item-index="368" style="overflow-anchor:none"><div id="text-diff-line-386" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="386" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="365" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="369" data-known-size="0" data-item-index="369" style="overflow-anchor:none"><div id="text-diff-line-387" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="387" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="366" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="370" data-known-size="0" data-item-index="370" style="overflow-anchor:none"><div id="text-diff-line-388" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="388" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="367" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="371" data-known-size="0" data-item-index="371" style="overflow-anchor:none"><div id="text-diff-line-389" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="389" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="368" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="372" data-known-size="0" data-item-index="372" style="overflow-anchor:none"><div id="text-diff-line-390" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="390" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_by_id($gid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="369" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_by_id($gid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="373" data-known-size="0" data-item-index="373" style="overflow-anchor:none"><div id="text-diff-line-391" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="391" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="370" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="374" data-known-size="0" data-item-index="374" style="overflow-anchor:none"><div id="text-diff-line-392" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="392" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="371" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="375" data-known-size="0" data-item-index="375" style="overflow-anchor:none"><div id="text-diff-line-393" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="393" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="372" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="376" data-known-size="0" data-item-index="376" style="overflow-anchor:none"><div id="text-diff-line-394" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="394" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="373" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="377" data-known-size="0" data-item-index="377" style="overflow-anchor:none"><div id="text-diff-line-395" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="395" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($gid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="374" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($gid); </span></div></div></div></div></div></div></div><div data-index="378" data-known-size="0" data-item-index="378" style="overflow-anchor:none"><div id="text-diff-line-396" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="396" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $gid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="375" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $gid ) { </span></div></div></div></div></div></div></div><div data-index="379" data-known-size="0" data-item-index="379" style="overflow-anchor:none"><div id="text-diff-line-397" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="397" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="376" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="380" data-known-size="0" data-item-index="380" style="overflow-anchor:none"><div id="text-diff-line-398" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="398" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="377" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="381" data-known-size="0" data-item-index="381" style="overflow-anchor:none"><div id="text-diff-line-399" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="399" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="378" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="382" data-known-size="0" data-item-index="382" style="overflow-anchor:none"><div id="text-diff-line-400" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="400" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupid:&#x27;.$gid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="379" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupid:&#x27;.$gid; </span></div></div></div></div></div></div></div><div data-index="383" data-known-size="0" data-item-index="383" style="overflow-anchor:none"><div id="text-diff-line-401" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="401" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="380" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="384" data-known-size="0" data-item-index="384" style="overflow-anchor:none"><div id="text-diff-line-402" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="402" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="381" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="385" data-known-size="0" data-item-index="385" style="overflow-anchor:none"><div id="text-diff-line-403" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="403" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="382" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="386" data-known-size="0" data-item-index="386" style="overflow-anchor:none"><div id="text-diff-line-404" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="404" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="383" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="387" data-known-size="0" data-item-index="387" style="overflow-anchor:none"><div id="text-diff-line-405" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="405" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="384" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="388" data-known-size="0" data-item-index="388" style="overflow-anchor:none"><div id="text-diff-line-406" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="406" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="385" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="389" data-known-size="0" data-item-index="389" style="overflow-anchor:none"><div id="text-diff-line-407" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="407" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="386" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="390" data-known-size="0" data-item-index="390" style="overflow-anchor:none"><div id="text-diff-line-408" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="408" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="387" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="391" data-known-size="0" data-item-index="391" style="overflow-anchor:none"><div id="text-diff-line-409" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="409" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="388" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="392" data-known-size="0" data-item-index="392" style="overflow-anchor:none"><div id="text-diff-line-410" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="410" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="389" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="393" data-known-size="0" data-item-index="393" style="overflow-anchor:none"><div id="text-diff-line-411" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="411" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;title = stripslashes($o-&gt;title); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="390" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;title = stripslashes($o-&gt;title); </span></div></div></div></div></div></div></div><div data-index="394" data-known-size="0" data-item-index="394" style="overflow-anchor:none"><div id="text-diff-line-412" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="412" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_public = $o-&gt;is_public==1; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="391" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_public = $o-&gt;is_public==1; </span></div></div></div></div></div></div></div><div data-index="395" data-known-size="0" data-item-index="395" style="overflow-anchor:none"><div id="text-diff-line-413" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="413" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_private = !$o-&gt;is_public; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="392" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_private = !$o-&gt;is_public; </span></div></div></div></div></div></div></div><div data-index="396" data-known-size="0" data-item-index="396" style="overflow-anchor:none"><div id="text-diff-line-414" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="414" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_deleted = FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="393" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_deleted = FALSE; </span></div></div></div></div></div></div></div><div data-index="397" data-known-size="0" data-item-index="397" style="overflow-anchor:none"><div id="text-diff-line-415" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="415" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;about_me = stripslashes($o-&gt;about_me); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="394" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;about_me = stripslashes($o-&gt;about_me); </span></div></div></div></div></div></div></div><div data-index="398" data-known-size="0" data-item-index="398" style="overflow-anchor:none"><div id="text-diff-line-416" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="416" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($o-&gt;avatar) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="395" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($o-&gt;avatar) ) { </span></div></div></div></div></div></div></div><div data-index="399" data-known-size="0" data-item-index="399" style="overflow-anchor:none"><div id="text-diff-line-417" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="417" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="396" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; </span></div></div></div></div></div></div></div><div data-index="400" data-known-size="0" data-item-index="400" style="overflow-anchor:none"><div id="text-diff-line-418" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="418" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="397" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="401" data-known-size="0" data-item-index="401" style="overflow-anchor:none"><div id="text-diff-line-419" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="419" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="398" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="402" data-known-size="0" data-item-index="402" style="overflow-anchor:none"><div id="text-diff-line-420" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="420" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="399" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div></div></div></div></div><div data-index="403" data-known-size="0" data-item-index="403" style="overflow-anchor:none"><div id="text-diff-line-421" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="421" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="400" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div></div></div></div></div><div data-index="404" data-known-size="0" data-item-index="404" style="overflow-anchor:none"><div id="text-diff-line-422" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="422" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="401" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="405" data-known-size="0" data-item-index="405" style="overflow-anchor:none"><div id="text-diff-line-423" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="423" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="402" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="406" data-known-size="0" data-item-index="406" style="overflow-anchor:none"><div id="text-diff-line-424" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="424" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="403" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="407" data-known-size="0" data-item-index="407" style="overflow-anchor:none"><div id="text-diff-line-425" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="425" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="404" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="408" data-known-size="0" data-item-index="408" style="overflow-anchor:none"><div id="text-diff-line-426" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="426" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="405" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="409" data-known-size="0" data-item-index="409" style="overflow-anchor:none"><div id="text-diff-line-427" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="427" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_deleted_group_by_id($gid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="406" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_deleted_group_by_id($gid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="410" data-known-size="0" data-item-index="410" style="overflow-anchor:none"><div id="text-diff-line-428" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="428" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="407" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="411" data-known-size="0" data-item-index="411" style="overflow-anchor:none"><div id="text-diff-line-429" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="429" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="408" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="412" data-known-size="0" data-item-index="412" style="overflow-anchor:none"><div id="text-diff-line-430" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="430" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="409" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="413" data-known-size="0" data-item-index="413" style="overflow-anchor:none"><div id="text-diff-line-431" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="431" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="410" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="414" data-known-size="0" data-item-index="414" style="overflow-anchor:none"><div id="text-diff-line-432" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="432" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($gid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="411" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $gid = intval($gid); </span></div></div></div></div></div></div></div><div data-index="415" data-known-size="0" data-item-index="415" style="overflow-anchor:none"><div id="text-diff-line-433" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="433" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $gid ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="412" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( 0 == $gid ) { </span></div></div></div></div></div></div></div><div data-index="416" data-known-size="0" data-item-index="416" style="overflow-anchor:none"><div id="text-diff-line-434" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="434" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="413" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="417" data-known-size="0" data-item-index="417" style="overflow-anchor:none"><div id="text-diff-line-435" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="435" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="414" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="418" data-known-size="0" data-item-index="418" style="overflow-anchor:none"><div id="text-diff-line-436" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="436" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="415" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="419" data-known-size="0" data-item-index="419" style="overflow-anchor:none"><div id="text-diff-line-437" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="437" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,deletedgroupid:&#x27;.$gid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="416" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,deletedgroupid:&#x27;.$gid; </span></div></div></div></div></div></div></div><div data-index="420" data-known-size="0" data-item-index="420" style="overflow-anchor:none"><div id="text-diff-line-438" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="438" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="417" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="421" data-known-size="0" data-item-index="421" style="overflow-anchor:none"><div id="text-diff-line-439" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="439" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="418" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="422" data-known-size="0" data-item-index="422" style="overflow-anchor:none"><div id="text-diff-line-440" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="440" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="419" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="423" data-known-size="0" data-item-index="423" style="overflow-anchor:none"><div id="text-diff-line-441" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="441" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="420" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="424" data-known-size="0" data-item-index="424" style="overflow-anchor:none"><div id="text-diff-line-442" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="442" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="421" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="425" data-known-size="0" data-item-index="425" style="overflow-anchor:none"><div id="text-diff-line-443" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="443" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="422" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="426" data-known-size="0" data-item-index="426" style="overflow-anchor:none"><div id="text-diff-line-444" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="444" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="423" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="427" data-known-size="0" data-item-index="427" style="overflow-anchor:none"><div id="text-diff-line-445" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="445" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="424" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="428" data-known-size="0" data-item-index="428" style="overflow-anchor:none"><div id="text-diff-line-446" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="446" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups_deleted WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="425" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups_deleted WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="429" data-known-size="0" data-item-index="429" style="overflow-anchor:none"><div id="text-diff-line-447" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="447" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="426" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="430" data-known-size="0" data-item-index="430" style="overflow-anchor:none"><div id="text-diff-line-448" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="448" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;title = stripslashes($o-&gt;title); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="427" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;title = stripslashes($o-&gt;title); </span></div></div></div></div></div></div></div><div data-index="431" data-known-size="0" data-item-index="431" style="overflow-anchor:none"><div id="text-diff-line-449" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="449" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_public = $o-&gt;is_public==1; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="428" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_public = $o-&gt;is_public==1; </span></div></div></div></div></div></div></div><div data-index="432" data-known-size="0" data-item-index="432" style="overflow-anchor:none"><div id="text-diff-line-450" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="450" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_private = !$o-&gt;is_public; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="429" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_private = !$o-&gt;is_public; </span></div></div></div></div></div></div></div><div data-index="433" data-known-size="0" data-item-index="433" style="overflow-anchor:none"><div id="text-diff-line-451" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="451" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_deleted = TRUE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="430" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $o-&gt;is_deleted = TRUE; </span></div></div></div></div></div></div></div><div data-index="434" data-known-size="0" data-item-index="434" style="overflow-anchor:none"><div id="text-diff-line-452" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="452" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="431" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="435" data-known-size="0" data-item-index="435" style="overflow-anchor:none"><div id="text-diff-line-453" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="453" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="432" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $o; </span></div></div></div></div></div></div></div><div data-index="436" data-known-size="0" data-item-index="436" style="overflow-anchor:none"><div id="text-diff-line-454" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="454" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="433" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $o; </span></div></div></div></div></div></div></div><div data-index="437" data-known-size="0" data-item-index="437" style="overflow-anchor:none"><div id="text-diff-line-455" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="455" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="434" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="438" data-known-size="0" data-item-index="438" style="overflow-anchor:none"><div id="text-diff-line-456" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="456" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="435" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($cachekey); </span></div></div></div></div></div></div></div><div data-index="439" data-known-size="0" data-item-index="439" style="overflow-anchor:none"><div id="text-diff-line-457" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="457" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="436" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="440" data-known-size="0" data-item-index="440" style="overflow-anchor:none"><div id="text-diff-line-458" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="458" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="437" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="441" data-known-size="0" data-item-index="441" style="overflow-anchor:none"><div id="text-diff-line-459" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="459" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="438" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="442" data-known-size="0" data-item-index="442" style="overflow-anchor:none"><div id="text-diff-line-460" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="460" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_invited_members($gid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="439" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_invited_members($gid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="443" data-known-size="0" data-item-index="443" style="overflow-anchor:none"><div id="text-diff-line-461" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="461" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="440" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="444" data-known-size="0" data-item-index="444" style="overflow-anchor:none"><div id="text-diff-line-462" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="462" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="441" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="445" data-known-size="0" data-item-index="445" style="overflow-anchor:none"><div id="text-diff-line-463" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="463" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="442" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="446" data-known-size="0" data-item-index="446" style="overflow-anchor:none"><div id="text-diff-line-464" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="464" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="443" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="447" data-known-size="0" data-item-index="447" style="overflow-anchor:none"><div id="text-diff-line-465" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="465" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="444" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { </span></div></div></div></div></div></div></div><div data-index="448" data-known-size="0" data-item-index="448" style="overflow-anchor:none"><div id="text-diff-line-466" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="466" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="445" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="449" data-known-size="0" data-item-index="449" style="overflow-anchor:none"><div id="text-diff-line-467" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="467" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="446" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="450" data-known-size="0" data-item-index="450" style="overflow-anchor:none"><div id="text-diff-line-468" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="468" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="447" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="451" data-known-size="0" data-item-index="451" style="overflow-anchor:none"><div id="text-diff-line-469" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="469" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_invited_members:&#x27;.$gid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="448" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_invited_members:&#x27;.$gid; </span></div></div></div></div></div></div></div><div data-index="452" data-known-size="0" data-item-index="452" style="overflow-anchor:none"><div id="text-diff-line-470" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="470" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="449" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="453" data-known-size="0" data-item-index="453" style="overflow-anchor:none"><div id="text-diff-line-471" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="471" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="450" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="454" data-known-size="0" data-item-index="454" style="overflow-anchor:none"><div id="text-diff-line-472" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="472" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="451" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="455" data-known-size="0" data-item-index="455" style="overflow-anchor:none"><div id="text-diff-line-473" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="473" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="452" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="456" data-known-size="0" data-item-index="456" style="overflow-anchor:none"><div id="text-diff-line-474" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="474" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="453" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="457" data-known-size="0" data-item-index="457" style="overflow-anchor:none"><div id="text-diff-line-475" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="475" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="454" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="458" data-known-size="0" data-item-index="458" style="overflow-anchor:none"><div id="text-diff-line-476" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="476" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="455" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="459" data-known-size="0" data-item-index="459" style="overflow-anchor:none"><div id="text-diff-line-477" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="477" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="456" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="460" data-known-size="0" data-item-index="460" style="overflow-anchor:none"><div id="text-diff-line-478" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="478" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="457" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="461" data-known-size="0" data-item-index="461" style="overflow-anchor:none"><div id="text-diff-line-479" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="479" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id FROM groups_private_members WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="458" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id FROM groups_private_members WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="462" data-known-size="0" data-item-index="462" style="overflow-anchor:none"><div id="text-diff-line-480" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="480" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="459" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="463" data-known-size="0" data-item-index="463" style="overflow-anchor:none"><div id="text-diff-line-481" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="481" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="460" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[] = intval($obj-&gt;user_id); </span></div></div></div></div></div></div></div><div data-index="464" data-known-size="0" data-item-index="464" style="overflow-anchor:none"><div id="text-diff-line-482" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="482" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="461" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="465" data-known-size="0" data-item-index="465" style="overflow-anchor:none"><div id="text-diff-line-483" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="483" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="462" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="466" data-known-size="0" data-item-index="466" style="overflow-anchor:none"><div id="text-diff-line-484" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="484" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="463" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="467" data-known-size="0" data-item-index="467" style="overflow-anchor:none"><div id="text-diff-line-485" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="485" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="464" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="468" data-known-size="0" data-item-index="468" style="overflow-anchor:none"><div id="text-diff-line-486" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="486" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="465" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="469" data-known-size="0" data-item-index="469" style="overflow-anchor:none"><div id="text-diff-line-487" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="487" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="466" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="470" data-known-size="0" data-item-index="470" style="overflow-anchor:none"><div id="text-diff-line-488" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="488" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_members($gid, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="467" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_group_members($gid, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="471" data-known-size="0" data-item-index="471" style="overflow-anchor:none"><div id="text-diff-line-489" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="489" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="468" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="472" data-known-size="0" data-item-index="472" style="overflow-anchor:none"><div id="text-diff-line-490" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="490" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="469" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="473" data-known-size="0" data-item-index="473" style="overflow-anchor:none"><div id="text-diff-line-491" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="491" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="470" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="474" data-known-size="0" data-item-index="474" style="overflow-anchor:none"><div id="text-diff-line-492" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="492" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="471" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="475" data-known-size="0" data-item-index="475" style="overflow-anchor:none"><div id="text-diff-line-493" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="493" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="472" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { </span></div></div></div></div></div></div></div><div data-index="476" data-known-size="0" data-item-index="476" style="overflow-anchor:none"><div id="text-diff-line-494" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="494" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="473" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="477" data-known-size="0" data-item-index="477" style="overflow-anchor:none"><div id="text-diff-line-495" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="495" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="474" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="478" data-known-size="0" data-item-index="478" style="overflow-anchor:none"><div id="text-diff-line-496" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="496" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_members:&#x27;.$gid; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="475" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_members:&#x27;.$gid; </span></div></div></div></div></div></div></div><div data-index="479" data-known-size="0" data-item-index="479" style="overflow-anchor:none"><div id="text-diff-line-497" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="497" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="476" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="480" data-known-size="0" data-item-index="480" style="overflow-anchor:none"><div id="text-diff-line-498" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="498" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="477" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="481" data-known-size="0" data-item-index="481" style="overflow-anchor:none"><div id="text-diff-line-499" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="499" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="478" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="482" data-known-size="0" data-item-index="482" style="overflow-anchor:none"><div id="text-diff-line-500" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="500" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="479" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="483" data-known-size="0" data-item-index="483" style="overflow-anchor:none"><div id="text-diff-line-501" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="501" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="480" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="484" data-known-size="0" data-item-index="484" style="overflow-anchor:none"><div id="text-diff-line-502" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="502" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($g-&gt;is_public == 0) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="481" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($g-&gt;is_public == 0) { </span></div></div></div></div></div></div></div><div data-index="485" data-known-size="0" data-item-index="485" style="overflow-anchor:none"><div id="text-diff-line-503" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="503" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $u_in = $this-&gt;get_group_invited_members($gid, $force_refresh); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="482" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $u_in = $this-&gt;get_group_invited_members($gid, $force_refresh); </span></div></div></div></div></div></div></div><div data-index="486" data-known-size="0" data-item-index="486" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-504" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="504" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> (active=1 OR sus_time&lt;&quot;&#x27;.time().&#x27;&quot;)</span><span class="diff-chunk_chunk__MRDHe undefined"> AND is_network_admin=1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="483" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">active=1</span><span class="diff-chunk_chunk__MRDHe undefined"> AND is_network_admin=1&#x27;, FALSE); </span></div></div></div></div></div></div></div></div></div></div><div data-index="487" data-known-size="0" data-item-index="487" style="overflow-anchor:none"><div id="text-diff-line-505" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="505" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> while($sdf = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="484" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> while($sdf = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="488" data-known-size="0" data-item-index="488" style="overflow-anchor:none"><div id="text-diff-line-506" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="506" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in[] = intval($sdf-&gt;id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="485" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in[] = intval($sdf-&gt;id); </span></div></div></div></div></div></div></div><div data-index="489" data-known-size="0" data-item-index="489" style="overflow-anchor:none"><div id="text-diff-line-507" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="507" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="486" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="490" data-known-size="0" data-item-index="490" style="overflow-anchor:none"><div id="text-diff-line-508" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="508" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in = array_unique($u_in); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="487" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in = array_unique($u_in); </span></div></div></div></div></div></div></div><div data-index="491" data-known-size="0" data-item-index="491" style="overflow-anchor:none"><div id="text-diff-line-509" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="509" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in = count($u_in)==0 ? &#x27;-1&#x27; : implode(&#x27;, &#x27;, $u_in); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="488" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $u_in = count($u_in)==0 ? &#x27;-1&#x27; : implode(&#x27;, &#x27;, $u_in); </span></div></div></div></div></div></div></div><div data-index="492" data-known-size="0" data-item-index="492" style="overflow-anchor:none"><div id="text-diff-line-510" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="510" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; AND user_id IN(&#x27;.$u_in.&#x27;) ORDER BY id ASC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="489" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; AND user_id IN(&#x27;.$u_in.&#x27;) ORDER BY id ASC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="493" data-known-size="0" data-item-index="493" style="overflow-anchor:none"><div id="text-diff-line-511" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="511" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="490" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="494" data-known-size="0" data-item-index="494" style="overflow-anchor:none"><div id="text-diff-line-512" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="512" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> else { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="491" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> else { </span></div></div></div></div></div></div></div><div data-index="495" data-known-size="0" data-item-index="495" style="overflow-anchor:none"><div id="text-diff-line-513" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="513" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="492" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="496" data-known-size="0" data-item-index="496" style="overflow-anchor:none"><div id="text-diff-line-514" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="514" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="493" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="497" data-known-size="0" data-item-index="497" style="overflow-anchor:none"><div id="text-diff-line-515" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="515" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="494" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> while($o = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="498" data-known-size="0" data-item-index="498" style="overflow-anchor:none"><div id="text-diff-line-516" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="516" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[intval($o-&gt;user_id)] = intval($o-&gt;group_from_postid); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="495" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[intval($o-&gt;user_id)] = intval($o-&gt;group_from_postid); </span></div></div></div></div></div></div></div><div data-index="499" data-known-size="0" data-item-index="499" style="overflow-anchor:none"><div id="text-diff-line-517" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="517" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="496" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="500" data-known-size="0" data-item-index="500" style="overflow-anchor:none"><div id="text-diff-line-518" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="518" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="497" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="501" data-known-size="0" data-item-index="501" style="overflow-anchor:none"><div id="text-diff-line-519" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="519" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="498" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="502" data-known-size="0" data-item-index="502" style="overflow-anchor:none"><div id="text-diff-line-520" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="520" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="499" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="503" data-known-size="0" data-item-index="503" style="overflow-anchor:none"><div id="text-diff-line-521" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="521" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="500" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="504" data-known-size="0" data-item-index="504" style="overflow-anchor:none"><div id="text-diff-line-522" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="522" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_last_post_id() </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="501" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_last_post_id() </span></div></div></div></div></div></div></div><div data-index="505" data-known-size="0" data-item-index="505" style="overflow-anchor:none"><div id="text-diff-line-523" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="523" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="502" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="506" data-known-size="0" data-item-index="506" style="overflow-anchor:none"><div id="text-diff-line-524" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="524" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="503" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $this-&gt;id ) { </span></div></div></div></div></div></div></div><div data-index="507" data-known-size="0" data-item-index="507" style="overflow-anchor:none"><div id="text-diff-line-525" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="525" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return 0; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="504" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return 0; </span></div></div></div></div></div></div></div><div data-index="508" data-known-size="0" data-item-index="508" style="overflow-anchor:none"><div id="text-diff-line-526" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="526" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="505" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="509" data-known-size="0" data-item-index="509" style="overflow-anchor:none"><div id="text-diff-line-527" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="527" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return intval($this-&gt;db2-&gt;fetch_field(&#x27;SELECT MAX(id) FROM posts&#x27;)); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="506" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return intval($this-&gt;db2-&gt;fetch_field(&#x27;SELECT MAX(id) FROM posts&#x27;)); </span></div></div></div></div></div></div></div><div data-index="510" data-known-size="0" data-item-index="510" style="overflow-anchor:none"><div id="text-diff-line-528" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="528" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="507" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="511" data-known-size="0" data-item-index="511" style="overflow-anchor:none"><div id="text-diff-line-529" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="529" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="508" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="512" data-known-size="0" data-item-index="512" style="overflow-anchor:none"><div id="text-diff-line-530" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="530" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="509" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="513" data-known-size="0" data-item-index="513" style="overflow-anchor:none"><div id="text-diff-line-531" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="531" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="510" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="514" data-known-size="0" data-item-index="514" style="overflow-anchor:none"><div id="text-diff-line-532" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="532" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags:&#x27;.md5($in_sql); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="511" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags:&#x27;.md5($in_sql); </span></div></div></div></div></div></div></div><div data-index="515" data-known-size="0" data-item-index="515" style="overflow-anchor:none"><div id="text-diff-line-533" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="533" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="512" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="516" data-known-size="0" data-item-index="516" style="overflow-anchor:none"><div id="text-diff-line-534" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="534" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="513" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="517" data-known-size="0" data-item-index="517" style="overflow-anchor:none"><div id="text-diff-line-535" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="535" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return array_slice($data, 0, $count); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="514" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return array_slice($data, 0, $count); </span></div></div></div></div></div></div></div><div data-index="518" data-known-size="0" data-item-index="518" style="overflow-anchor:none"><div id="text-diff-line-536" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="536" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="515" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="519" data-known-size="0" data-item-index="519" style="overflow-anchor:none"><div id="text-diff-line-537" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="537" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> // this is to avoid running the query below multiple times at once </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="516" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> // this is to avoid running the query below multiple times at once </span></div></div></div></div></div></div></div><div data-index="520" data-known-size="0" data-item-index="520" style="overflow-anchor:none"><div id="text-diff-line-538" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="538" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $inprogressflag = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags_loading&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="517" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $inprogressflag = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags_loading&#x27;; </span></div></div></div></div></div></div></div><div data-index="521" data-known-size="0" data-item-index="521" style="overflow-anchor:none"><div id="text-diff-line-539" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="539" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $this-&gt;cache-&gt;get($inprogressflag) == 12345 ) { return array(); } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="518" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $this-&gt;cache-&gt;get($inprogressflag) == 12345 ) { return array(); } </span></div></div></div></div></div></div></div><div data-index="522" data-known-size="0" data-item-index="522" style="overflow-anchor:none"><div id="text-diff-line-540" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="540" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($inprogressflag, 12345, 5*60); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="519" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($inprogressflag, 12345, 5*60); </span></div></div></div></div></div></div></div><div data-index="523" data-known-size="0" data-item-index="523" style="overflow-anchor:none"><div id="text-diff-line-541" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="541" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> // </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="520" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> // </span></div></div></div></div></div></div></div><div data-index="524" data-known-size="0" data-item-index="524" style="overflow-anchor:none"><div id="text-diff-line-542" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="542" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="521" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array(); </span></div></div></div></div></div></div></div><div data-index="525" data-known-size="0" data-item-index="525" style="overflow-anchor:none"><div id="text-diff-line-543" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="543" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT message, date FROM posts WHERE api_id&lt;&gt;2 AND api_id&lt;&gt;6 AND posttags&lt;&gt;0 &#x27;.$in_sql.&#x27; ORDER BY id DESC LIMIT 1000&#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="522" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT message, date FROM posts WHERE api_id&lt;&gt;2 AND api_id&lt;&gt;6 AND posttags&lt;&gt;0 &#x27;.$in_sql.&#x27; ORDER BY id DESC LIMIT 1000&#x27;); </span></div></div></div></div></div></div></div><div data-index="526" data-known-size="0" data-item-index="526" style="overflow-anchor:none"><div id="text-diff-line-544" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="544" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> while($tmp = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="523" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> while($tmp = $this-&gt;db2-&gt;fetch_object()) { </span></div></div></div></div></div></div></div><div data-index="527" data-known-size="0" data-item-index="527" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-545" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="545" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> if( ! </span><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp">preg_match_all(&#x27;/\#([א-תÀ-ÿ一-龥а-яa-z0-9\-_]{1,50})/iu&#x27;,</span><span class="diff-chunk_chunk__MRDHe undefined"> stripslashes($tmp-&gt;message), $matches, PREG_PATTERN_ORDER) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="524" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe undefined"> if( ! </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u">preg_match_all(&#x27;/\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\-_]{1,50})/iu&#x27;,</span><span class="diff-chunk_chunk__MRDHe undefined"> stripslashes($tmp-&gt;message), $matches, PREG_PATTERN_ORDER) ) { </span></div></div></div></div></div></div></div></div></div></div><div data-index="528" data-known-size="0" data-item-index="528" style="overflow-anchor:none"><div id="text-diff-line-546" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="546" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> continue; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="525" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> continue; </span></div></div></div></div></div></div></div><div data-index="529" data-known-size="0" data-item-index="529" style="overflow-anchor:none"><div id="text-diff-line-547" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="547" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="526" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="530" data-known-size="0" data-item-index="530" style="overflow-anchor:none"><div id="text-diff-line-548" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="548" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="527" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags = array(); </span></div></div></div></div></div></div></div><div data-index="531" data-known-size="0" data-item-index="531" style="overflow-anchor:none"><div id="text-diff-line-549" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="549" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($matches[1] as $tg) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="528" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($matches[1] as $tg) { </span></div></div></div></div></div></div></div><div data-index="532" data-known-size="0" data-item-index="532" style="overflow-anchor:none"><div id="text-diff-line-550" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="550" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags[] = mb_strtolower(trim($tg)); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="529" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags[] = mb_strtolower(trim($tg)); </span></div></div></div></div></div></div></div><div data-index="533" data-known-size="0" data-item-index="533" style="overflow-anchor:none"><div id="text-diff-line-551" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="551" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="530" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="534" data-known-size="0" data-item-index="534" style="overflow-anchor:none"><div id="text-diff-line-552" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="552" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags = array_unique($thisposttags); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="531" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $thisposttags = array_unique($thisposttags); </span></div></div></div></div></div></div></div><div data-index="535" data-known-size="0" data-item-index="535" style="overflow-anchor:none"><div id="text-diff-line-553" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="553" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 1; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="532" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 1; </span></div></div></div></div></div></div></div><div data-index="536" data-known-size="0" data-item-index="536" style="overflow-anchor:none"><div id="text-diff-line-554" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="554" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $tmp-&gt;date &gt; time()-24*3600 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="533" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $tmp-&gt;date &gt; time()-24*3600 ) { </span></div></div></div></div></div></div></div><div data-index="537" data-known-size="0" data-item-index="537" style="overflow-anchor:none"><div id="text-diff-line-555" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="555" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 100; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="534" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 100; </span></div></div></div></div></div></div></div><div data-index="538" data-known-size="0" data-item-index="538" style="overflow-anchor:none"><div id="text-diff-line-556" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="556" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="535" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="539" data-known-size="0" data-item-index="539" style="overflow-anchor:none"><div id="text-diff-line-557" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="557" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $tmp-&gt;date &gt; time()-7*24*3600 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="536" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $tmp-&gt;date &gt; time()-7*24*3600 ) { </span></div></div></div></div></div></div></div><div data-index="540" data-known-size="0" data-item-index="540" style="overflow-anchor:none"><div id="text-diff-line-558" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="558" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weigth = 20; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="537" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weigth = 20; </span></div></div></div></div></div></div></div><div data-index="541" data-known-size="0" data-item-index="541" style="overflow-anchor:none"><div id="text-diff-line-559" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="559" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="538" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="542" data-known-size="0" data-item-index="542" style="overflow-anchor:none"><div id="text-diff-line-560" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="560" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $tmp-&gt;date &gt; time()-30*24*3600 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="539" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $tmp-&gt;date &gt; time()-30*24*3600 ) { </span></div></div></div></div></div></div></div><div data-index="543" data-known-size="0" data-item-index="543" style="overflow-anchor:none"><div id="text-diff-line-561" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="561" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 5; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="540" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $weight = 5; </span></div></div></div></div></div></div></div><div data-index="544" data-known-size="0" data-item-index="544" style="overflow-anchor:none"><div id="text-diff-line-562" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="562" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="541" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="545" data-known-size="0" data-item-index="545" style="overflow-anchor:none"><div id="text-diff-line-563" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="563" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($thisposttags as $tg) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="542" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($thisposttags as $tg) { </span></div></div></div></div></div></div></div><div data-index="546" data-known-size="0" data-item-index="546" style="overflow-anchor:none"><div id="text-diff-line-564" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="564" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($data[$tg]) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="543" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! isset($data[$tg]) ) { </span></div></div></div></div></div></div></div><div data-index="547" data-known-size="0" data-item-index="547" style="overflow-anchor:none"><div id="text-diff-line-565" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="565" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[$tg] = 0; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="544" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[$tg] = 0; </span></div></div></div></div></div></div></div><div data-index="548" data-known-size="0" data-item-index="548" style="overflow-anchor:none"><div id="text-diff-line-566" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="566" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="545" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="549" data-known-size="0" data-item-index="549" style="overflow-anchor:none"><div id="text-diff-line-567" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="567" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[$tg] += $weight; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="546" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data[$tg] += $weight; </span></div></div></div></div></div></div></div><div data-index="550" data-known-size="0" data-item-index="550" style="overflow-anchor:none"><div id="text-diff-line-568" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="568" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="547" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="551" data-known-size="0" data-item-index="551" style="overflow-anchor:none"><div id="text-diff-line-569" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="569" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="548" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="552" data-known-size="0" data-item-index="552" style="overflow-anchor:none"><div id="text-diff-line-570" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="570" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> arsort($data); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="549" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> arsort($data); </span></div></div></div></div></div></div></div><div data-index="553" data-known-size="0" data-item-index="553" style="overflow-anchor:none"><div id="text-diff-line-571" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="571" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array_keys($data); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="550" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array_keys($data); </span></div></div></div></div></div></div></div><div data-index="554" data-known-size="0" data-item-index="554" style="overflow-anchor:none"><div id="text-diff-line-572" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="572" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array_slice($data, 0, 50); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="551" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = array_slice($data, 0, 50); </span></div></div></div></div></div></div></div><div data-index="555" data-known-size="0" data-item-index="555" style="overflow-anchor:none"><div id="text-diff-line-573" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="573" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="552" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="556" data-known-size="0" data-item-index="556" style="overflow-anchor:none"><div id="text-diff-line-574" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="574" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($inprogressflag); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="553" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;del($inprogressflag); </span></div></div></div></div></div></div></div><div data-index="557" data-known-size="0" data-item-index="557" style="overflow-anchor:none"><div id="text-diff-line-575" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="575" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return array_slice($data, 0, $count); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="554" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return array_slice($data, 0, $count); </span></div></div></div></div></div></div></div><div data-index="558" data-known-size="0" data-item-index="558" style="overflow-anchor:none"><div id="text-diff-line-576" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="576" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="555" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="559" data-known-size="0" data-item-index="559" style="overflow-anchor:none"><div id="text-diff-line-577" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="577" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="556" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="560" data-known-size="0" data-item-index="560" style="overflow-anchor:none"><div id="text-diff-line-578" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="578" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_notif_rules($user_id, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="557" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_user_notif_rules($user_id, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="561" data-known-size="0" data-item-index="561" style="overflow-anchor:none"><div id="text-diff-line-579" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="579" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="558" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="562" data-known-size="0" data-item-index="562" style="overflow-anchor:none"><div id="text-diff-line-580" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="580" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usr_ntf_rulz:&#x27;.$user_id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="559" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usr_ntf_rulz:&#x27;.$user_id; </span></div></div></div></div></div></div></div><div data-index="563" data-known-size="0" data-item-index="563" style="overflow-anchor:none"><div id="text-diff-line-581" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="581" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="560" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="564" data-known-size="0" data-item-index="564" style="overflow-anchor:none"><div id="text-diff-line-582" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="582" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="561" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="565" data-known-size="0" data-item-index="565" style="overflow-anchor:none"><div id="text-diff-line-583" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="583" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="562" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="566" data-known-size="0" data-item-index="566" style="overflow-anchor:none"><div id="text-diff-line-584" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="584" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="563" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="567" data-known-size="0" data-item-index="567" style="overflow-anchor:none"><div id="text-diff-line-585" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="585" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="564" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); </span></div></div></div></div></div></div></div><div data-index="568" data-known-size="0" data-item-index="568" style="overflow-anchor:none"><div id="text-diff-line-586" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="586" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="565" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { </span></div></div></div></div></div></div></div><div data-index="569" data-known-size="0" data-item-index="569" style="overflow-anchor:none"><div id="text-diff-line-587" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="587" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> require_once( $GLOBALS[&#x27;C&#x27;]-&gt;INCPATH.&#x27;helpers/func_signup.php&#x27; ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="566" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> require_once( $GLOBALS[&#x27;C&#x27;]-&gt;INCPATH.&#x27;helpers/func_signup.php&#x27; ); </span></div></div></div></div></div></div></div><div data-index="570" data-known-size="0" data-item-index="570" style="overflow-anchor:none"><div id="text-diff-line-588" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="588" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> set_user_default_notification_rules($user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="567" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> set_user_default_notification_rules($user_id); </span></div></div></div></div></div></div></div><div data-index="571" data-known-size="0" data-item-index="571" style="overflow-anchor:none"><div id="text-diff-line-589" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="589" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="568" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="572" data-known-size="0" data-item-index="572" style="overflow-anchor:none"><div id="text-diff-line-590" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="590" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="569" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); </span></div></div></div></div></div></div></div><div data-index="573" data-known-size="0" data-item-index="573" style="overflow-anchor:none"><div id="text-diff-line-591" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="591" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="570" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { </span></div></div></div></div></div></div></div><div data-index="574" data-known-size="0" data-item-index="574" style="overflow-anchor:none"><div id="text-diff-line-592" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="592" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="571" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="575" data-known-size="0" data-item-index="575" style="overflow-anchor:none"><div id="text-diff-line-593" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="593" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="572" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="576" data-known-size="0" data-item-index="576" style="overflow-anchor:none"><div id="text-diff-line-594" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="594" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> unset($obj-&gt;user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="573" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> unset($obj-&gt;user_id); </span></div></div></div></div></div></div></div><div data-index="577" data-known-size="0" data-item-index="577" style="overflow-anchor:none"><div id="text-diff-line-595" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="595" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $obj, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="574" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $obj, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="578" data-known-size="0" data-item-index="578" style="overflow-anchor:none"><div id="text-diff-line-596" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="596" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $obj; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="575" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $obj; </span></div></div></div></div></div></div></div><div data-index="579" data-known-size="0" data-item-index="579" style="overflow-anchor:none"><div id="text-diff-line-597" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="597" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="576" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="580" data-known-size="0" data-item-index="580" style="overflow-anchor:none"><div id="text-diff-line-598" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="598" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="577" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="581" data-known-size="0" data-item-index="581" style="overflow-anchor:none"><div id="text-diff-line-599" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="599" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_posts_api($id, $force_refresh=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="578" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_posts_api($id, $force_refresh=FALSE) </span></div></div></div></div></div></div></div><div data-index="582" data-known-size="0" data-item-index="582" style="overflow-anchor:none"><div id="text-diff-line-600" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="600" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="579" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="583" data-known-size="0" data-item-index="583" style="overflow-anchor:none"><div id="text-diff-line-601" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="601" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $id = intval($id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="580" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $id = intval($id); </span></div></div></div></div></div></div></div><div data-index="584" data-known-size="0" data-item-index="584" style="overflow-anchor:none"><div id="text-diff-line-602" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="602" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="581" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> static $loaded = array(); </span></div></div></div></div></div></div></div><div data-index="585" data-known-size="0" data-item-index="585" style="overflow-anchor:none"><div id="text-diff-line-603" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="603" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_app:&#x27;.$id; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="582" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_app:&#x27;.$id; </span></div></div></div></div></div></div></div><div data-index="586" data-known-size="0" data-item-index="586" style="overflow-anchor:none"><div id="text-diff-line-604" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="604" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="583" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="587" data-known-size="0" data-item-index="587" style="overflow-anchor:none"><div id="text-diff-line-605" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="605" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="584" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $loaded[$cachekey]; </span></div></div></div></div></div></div></div><div data-index="588" data-known-size="0" data-item-index="588" style="overflow-anchor:none"><div id="text-diff-line-606" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="606" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="585" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="589" data-known-size="0" data-item-index="589" style="overflow-anchor:none"><div id="text-diff-line-607" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="607" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="586" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;cache-&gt;get($cachekey); </span></div></div></div></div></div></div></div><div data-index="590" data-known-size="0" data-item-index="590" style="overflow-anchor:none"><div id="text-diff-line-608" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="608" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="587" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { </span></div></div></div></div></div></div></div><div data-index="591" data-known-size="0" data-item-index="591" style="overflow-anchor:none"><div id="text-diff-line-609" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="609" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="588" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="592" data-known-size="0" data-item-index="592" style="overflow-anchor:none"><div id="text-diff-line-610" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="610" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="589" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="593" data-known-size="0" data-item-index="593" style="overflow-anchor:none"><div id="text-diff-line-611" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="611" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="590" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="594" data-known-size="0" data-item-index="594" style="overflow-anchor:none"><div id="text-diff-line-612" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="612" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id, name FROM applications WHERE id=&quot;&#x27;.$id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="591" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id, name FROM applications WHERE id=&quot;&#x27;.$id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="595" data-known-size="0" data-item-index="595" style="overflow-anchor:none"><div id="text-diff-line-613" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="613" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $data = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="592" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $data = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div></div><div data-index="596" data-known-size="0" data-item-index="596" style="overflow-anchor:none"><div id="text-diff-line-614" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="614" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;name = stripslashes($data-&gt;name); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="593" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data-&gt;name = stripslashes($data-&gt;name); </span></div></div></div></div></div></div></div><div data-index="597" data-known-size="0" data-item-index="597" style="overflow-anchor:none"><div id="text-diff-line-615" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="615" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="594" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); </span></div></div></div></div></div></div></div><div data-index="598" data-known-size="0" data-item-index="598" style="overflow-anchor:none"><div id="text-diff-line-616" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="616" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="595" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $loaded[$cachekey] = $data; </span></div></div></div></div></div></div></div><div data-index="599" data-known-size="0" data-item-index="599" style="overflow-anchor:none"><div id="text-diff-line-617" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="617" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="596" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return $data; </span></div></div></div></div></div></div></div><div data-index="600" data-known-size="0" data-item-index="600" style="overflow-anchor:none"><div id="text-diff-line-618" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="618" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="597" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="601" data-known-size="0" data-item-index="601" style="overflow-anchor:none"><div id="text-diff-line-619" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="619" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="598" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return FALSE; </span></div></div></div></div></div></div></div><div data-index="602" data-known-size="0" data-item-index="602" style="overflow-anchor:none"><div id="text-diff-line-620" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="620" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="599" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="603" data-known-size="0" data-item-index="603" style="overflow-anchor:none"><div id="text-diff-line-621" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="621" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="600" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="604" data-known-size="0" data-item-index="604" style="overflow-anchor:none"><div id="text-diff-line-622" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="622" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action=&#x27;ignore&#x27;) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="601" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action=&#x27;ignore&#x27;) </span></div></div></div></div></div></div></div><div data-index="605" data-known-size="0" data-item-index="605" style="overflow-anchor:none"><div id="text-diff-line-623" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="623" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="602" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="606" data-known-size="0" data-item-index="606" style="overflow-anchor:none"><div id="text-diff-line-624" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="624" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> // $if_exists_action: &#x27;ignore&#x27; or &#x27;replace&#x27; or &#x27;quit&#x27; - please use &#x27;ignore&#x27;, otherwise it could cause heavy performance leaks </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="603" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> // $if_exists_action: &#x27;ignore&#x27; or &#x27;replace&#x27; or &#x27;quit&#x27; - please use &#x27;ignore&#x27;, otherwise it could cause heavy performance leaks </span></div></div></div></div></div></div></div><div data-index="607" data-known-size="0" data-item-index="607" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-625" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_start__phKAH diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="625" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> $if_exists_action=&#x27;ignore&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="604" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> </span></div></div></div></div></div></div></div></div></div></div><div data-index="608" data-known-size="0" data-item-index="608" style="overflow-anchor:none"><div id="text-diff-line-626" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="626" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> global $C; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="605" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> global $C; </span></div></div></div></div></div></div></div><div data-index="609" data-known-size="0" data-item-index="609" style="overflow-anchor:none"><div id="text-diff-line-627" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="627" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $to_user_id = intval($to_user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="606" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $to_user_id = intval($to_user_id); </span></div></div></div></div></div></div></div><div data-index="610" data-known-size="0" data-item-index="610" style="overflow-anchor:none"><div id="text-diff-line-628" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="628" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $in_group_id = intval($in_group_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="607" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $in_group_id = intval($in_group_id); </span></div></div></div></div></div></div></div><div data-index="611" data-known-size="0" data-item-index="611" style="overflow-anchor:none"><div id="text-diff-line-629" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="629" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $C-&gt;API_ID == 1 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="608" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $C-&gt;API_ID == 1 ) { </span></div></div></div></div></div></div></div><div data-index="612" data-known-size="0" data-item-index="612" style="overflow-anchor:none"><div id="text-diff-line-630" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="630" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;SITE_URL, $m) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="609" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;SITE_URL, $m) ) { </span></div></div></div></div></div></div></div><div data-index="613" data-known-size="0" data-item-index="613" style="overflow-anchor:none"><div id="text-diff-line-631" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="631" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = $m[1].$m[3]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="610" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = $m[1].$m[3]; </span></div></div></div></div></div></div></div><div data-index="614" data-known-size="0" data-item-index="614" style="overflow-anchor:none"><div id="text-diff-line-632" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="632" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($lang_params as &amp;$p) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="611" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($lang_params as &amp;$p) { </span></div></div></div></div></div></div></div><div data-index="615" data-known-size="0" data-item-index="615" style="overflow-anchor:none"><div id="text-diff-line-633" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="633" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="612" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); </span></div></div></div></div></div></div></div><div data-index="616" data-known-size="0" data-item-index="616" style="overflow-anchor:none"><div id="text-diff-line-634" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="634" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="613" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="617" data-known-size="0" data-item-index="617" style="overflow-anchor:none"><div id="text-diff-line-635" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="635" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="614" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="618" data-known-size="0" data-item-index="618" style="overflow-anchor:none"><div id="text-diff-line-636" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="636" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( preg_match(&#x27;/\/m(\/|$)/iu&#x27;, $C-&gt;SITE_URL, $m) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="615" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( preg_match(&#x27;/\/m(\/|$)/iu&#x27;, $C-&gt;SITE_URL, $m) ) { </span></div></div></div></div></div></div></div><div data-index="619" data-known-size="0" data-item-index="619" style="overflow-anchor:none"><div id="text-diff-line-637" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="637" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = preg_replace(&#x27;/\/m(\/|$)/&#x27;, &#x27;&#x27;, $C-&gt;SITE_URL); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="616" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = preg_replace(&#x27;/\/m(\/|$)/&#x27;, &#x27;&#x27;, $C-&gt;SITE_URL); </span></div></div></div></div></div></div></div><div data-index="620" data-known-size="0" data-item-index="620" style="overflow-anchor:none"><div id="text-diff-line-638" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="638" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = rtrim($siteurl,&#x27;/&#x27;).&#x27;/&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="617" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = rtrim($siteurl,&#x27;/&#x27;).&#x27;/&#x27;; </span></div></div></div></div></div></div></div><div data-index="621" data-known-size="0" data-item-index="621" style="overflow-anchor:none"><div id="text-diff-line-639" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="639" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($lang_params as &amp;$p) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="618" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($lang_params as &amp;$p) { </span></div></div></div></div></div></div></div><div data-index="622" data-known-size="0" data-item-index="622" style="overflow-anchor:none"><div id="text-diff-line-640" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="640" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="619" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); </span></div></div></div></div></div></div></div><div data-index="623" data-known-size="0" data-item-index="623" style="overflow-anchor:none"><div id="text-diff-line-641" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="641" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="620" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="624" data-known-size="0" data-item-index="624" style="overflow-anchor:none"><div id="text-diff-line-642" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="642" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="621" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="625" data-known-size="0" data-item-index="625" style="overflow-anchor:none"><div id="text-diff-line-643" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="643" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="622" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="626" data-known-size="0" data-item-index="626" style="overflow-anchor:none"><div id="text-diff-line-644" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="644" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = (object) array ( </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="623" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = (object) array ( </span></div></div></div></div></div></div></div><div data-index="627" data-known-size="0" data-item-index="627" style="overflow-anchor:none"><div id="text-diff-line-645" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="645" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;type&#x27; =&gt; &#x27;notif&#x27;, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="624" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;type&#x27; =&gt; &#x27;notif&#x27;, </span></div></div></div></div></div></div></div><div data-index="628" data-known-size="0" data-item-index="628" style="overflow-anchor:none"><div id="text-diff-line-646" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="646" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;to_user_id&#x27; =&gt; $to_user_id, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="625" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;to_user_id&#x27; =&gt; $to_user_id, </span></div></div></div></div></div></div></div><div data-index="629" data-known-size="0" data-item-index="629" style="overflow-anchor:none"><div id="text-diff-line-647" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="647" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;in_group_id&#x27; =&gt; $in_group_id, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="626" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;in_group_id&#x27; =&gt; $in_group_id, </span></div></div></div></div></div></div></div><div data-index="630" data-known-size="0" data-item-index="630" style="overflow-anchor:none"><div id="text-diff-line-648" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="648" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;lang_key&#x27; =&gt; $lang_key, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="627" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;lang_key&#x27; =&gt; $lang_key, </span></div></div></div></div></div></div></div><div data-index="631" data-known-size="0" data-item-index="631" style="overflow-anchor:none"><div id="text-diff-line-649" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="649" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;lang_params&#x27; =&gt; $lang_params, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="628" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;lang_params&#x27; =&gt; $lang_params, </span></div></div></div></div></div></div></div><div data-index="632" data-known-size="0" data-item-index="632" style="overflow-anchor:none"><div id="text-diff-line-650" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="650" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;from_user_id&#x27; =&gt; $GLOBALS[&#x27;user&#x27;]-&gt;id, </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="629" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> &#x27;from_user_id&#x27; =&gt; $GLOBALS[&#x27;user&#x27;]-&gt;id, </span></div></div></div></div></div></div></div><div data-index="633" data-known-size="0" data-item-index="633" style="overflow-anchor:none"><div id="text-diff-line-651" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="651" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> ); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="630" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> ); </span></div></div></div></div></div></div></div><div data-index="634" data-known-size="0" data-item-index="634" style="overflow-anchor:none"><div id="text-diff-line-652" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="652" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;db2-&gt;e(serialize($data)); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="631" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $data = $this-&gt;db2-&gt;e(serialize($data)); </span></div></div></div></div></div></div></div><div data-index="635" data-known-size="0" data-item-index="635" style="overflow-anchor:none"><div id="text-diff-line-653" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="653" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $to_user_id &gt; 0 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="632" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $to_user_id &gt; 0 ) { </span></div></div></div></div></div></div></div><div data-index="636" data-known-size="0" data-item-index="636" style="overflow-anchor:none"><div id="text-diff-line-654" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="654" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action != &#x27;ignore&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="633" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action != &#x27;ignore&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="637" data-known-size="0" data-item-index="637" style="overflow-anchor:none"><div id="text-diff-line-655" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="655" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;0&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="634" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;0&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="638" data-known-size="0" data-item-index="638" style="overflow-anchor:none"><div id="text-diff-line-656" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="656" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="635" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="639" data-known-size="0" data-item-index="639" style="overflow-anchor:none"><div id="text-diff-line-657" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="657" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;quit&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="636" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;quit&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="640" data-known-size="0" data-item-index="640" style="overflow-anchor:none"><div id="text-diff-line-658" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="658" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="637" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div></div></div></div></div><div data-index="641" data-known-size="0" data-item-index="641" style="overflow-anchor:none"><div id="text-diff-line-659" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="659" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="638" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="642" data-known-size="0" data-item-index="642" style="overflow-anchor:none"><div id="text-diff-line-660" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="660" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;replace&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="639" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;replace&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="643" data-known-size="0" data-item-index="643" style="overflow-anchor:none"><div id="text-diff-line-661" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="661" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="640" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="644" data-known-size="0" data-item-index="644" style="overflow-anchor:none"><div id="text-diff-line-662" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="662" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM post_userbox WHERE post_id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; &#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="641" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM post_userbox WHERE post_id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; &#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="645" data-known-size="0" data-item-index="645" style="overflow-anchor:none"><div id="text-diff-line-663" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="663" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="642" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="646" data-known-size="0" data-item-index="646" style="overflow-anchor:none"><div id="text-diff-line-664" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="664" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="643" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="647" data-known-size="0" data-item-index="647" style="overflow-anchor:none"><div id="text-diff-line-665" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="665" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="644" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="648" data-known-size="0" data-item-index="648" style="overflow-anchor:none"><div id="text-diff-line-666" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="666" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;INSERT INTO posts SET user_id=&quot;0&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="645" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;INSERT INTO posts SET user_id=&quot;0&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="649" data-known-size="0" data-item-index="649" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-667" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="667" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_removed__oVJqp"> // $this-&gt;db2-&gt;query(&#x27;INSERT</span><span class="diff-chunk_chunk__MRDHe undefined"> DELAYED INTO post_userbox SET user_id=&quot;&#x27;.$to_user_id.&#x27;&quot;, post_id=&quot;&#x27;.intval($this-&gt;db2-&gt;insert_id()).&#x27;&quot; &#x27;); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="646" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $this-&gt;db2-&gt;query(&#x27;INSERT</span><span class="diff-chunk_chunk__MRDHe undefined"> DELAYED INTO post_userbox SET user_id=&quot;&#x27;.$to_user_id.&#x27;&quot;, post_id=&quot;&#x27;.intval($this-&gt;db2-&gt;insert_id()).&#x27;&quot; &#x27;); </span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"></span></div></div></div></div></div></div><div id="text-diff-line-668" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="647" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $this-&gt;set_dashboard_tabstate($to_user_id, &#x27;system&#x27;, 1); </span></div></div></div></div></div></div></div></div></div></div><div data-index="650" data-known-size="0" data-item-index="650" style="overflow-anchor:none"><div id="text-diff-line-669" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="668" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="648" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_start__yH8GM"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="651" data-known-size="0" data-item-index="651" style="overflow-anchor:none"><div id="text-diff-line-670" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="669" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $in_group_id &gt; 0 ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="649" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> elseif( $in_group_id &gt; 0 ) { </span></div></div></div></div></div></div></div><div data-index="652" data-known-size="0" data-item-index="652" style="overflow-anchor:none"><div id="text-diff-line-671" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="670" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action != &#x27;ignore&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="650" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action != &#x27;ignore&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="653" data-known-size="0" data-item-index="653" style="overflow-anchor:none"><div id="text-diff-line-672" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="671" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;&#x27;.$in_group_id.&#x27;&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="651" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;&#x27;.$in_group_id.&#x27;&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="654" data-known-size="0" data-item-index="654" style="overflow-anchor:none"><div id="text-diff-line-673" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="672" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="652" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if($obj = $this-&gt;db2-&gt;fetch_object($r)) { </span></div></div></div></div></div></div></div><div data-index="655" data-known-size="0" data-item-index="655" style="overflow-anchor:none"><div id="text-diff-line-674" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="673" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;quit&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="653" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;quit&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="656" data-known-size="0" data-item-index="656" style="overflow-anchor:none"><div id="text-diff-line-675" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="674" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="654" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div></div></div></div></div><div data-index="657" data-known-size="0" data-item-index="657" style="overflow-anchor:none"><div id="text-diff-line-676" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="675" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="655" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="658" data-known-size="0" data-item-index="658" style="overflow-anchor:none"><div id="text-diff-line-677" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="676" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;replace&#x27; ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="656" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $if_exists_action == &#x27;replace&#x27; ) { </span></div></div></div></div></div></div></div><div data-index="659" data-known-size="0" data-item-index="659" style="overflow-anchor:none"><div id="text-diff-line-678" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="677" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="657" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="660" data-known-size="0" data-item-index="660" style="overflow-anchor:none"><div id="text-diff-line-679" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="678" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="658" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="661" data-known-size="0" data-item-index="661" style="overflow-anchor:none"><div id="text-diff-line-680" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="679" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="659" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="662" data-known-size="0" data-item-index="662" style="overflow-anchor:none"><div id="text-diff-line-681" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="680" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="660" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="663" data-known-size="0" data-item-index="663" style="overflow-anchor:none"><div id="text-diff-line-682" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="681" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO posts SET group_id=&quot;&#x27;.$in_group_id.&#x27;&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="661" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO posts SET group_id=&quot;&#x27;.$in_group_id.&#x27;&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="664" data-known-size="0" data-item-index="664" style="overflow-anchor:none"><div id="text-diff-line-683" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="682" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="662" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="665" data-known-size="0" data-item-index="665" style="overflow-anchor:none"><div id="text-diff-line-684" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="683" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="663" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="666" data-known-size="0" data-item-index="666" style="overflow-anchor:none"><div id="text-diff-line-685" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="684" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="664" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE) </span></div></div></div></div></div></div></div><div data-index="667" data-known-size="0" data-item-index="667" style="overflow-anchor:none"><div id="text-diff-line-686" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="685" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="665" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="668" data-known-size="0" data-item-index="668" style="overflow-anchor:none"><div id="text-diff-line-687" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="686" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> global $C, $D, $page; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="666" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> global $C, $D, $page; </span></div></div></div></div></div></div></div><div data-index="669" data-known-size="0" data-item-index="669" style="overflow-anchor:none"><div id="text-diff-line-688" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="687" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $inD ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="667" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $inD ) { </span></div></div></div></div></div></div></div><div data-index="670" data-known-size="0" data-item-index="670" style="overflow-anchor:none"><div id="text-diff-line-689" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="688" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($inD as $k=&gt;$v) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="668" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($inD as $k=&gt;$v) { </span></div></div></div></div></div></div></div><div data-index="671" data-known-size="0" data-item-index="671" style="overflow-anchor:none"><div id="text-diff-line-690" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="689" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;$k = $v; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="669" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;$k = $v; </span></div></div></div></div></div></div></div><div data-index="672" data-known-size="0" data-item-index="672" style="overflow-anchor:none"><div id="text-diff-line-691" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="690" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="670" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="673" data-known-size="0" data-item-index="673" style="overflow-anchor:none"><div id="text-diff-line-692" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="691" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="671" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="674" data-known-size="0" data-item-index="674" style="overflow-anchor:none"><div id="text-diff-line-693" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="692" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $to_user = $this-&gt;get_user_by_id($to_user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="672" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $to_user = $this-&gt;get_user_by_id($to_user_id); </span></div></div></div></div></div></div></div><div data-index="675" data-known-size="0" data-item-index="675" style="overflow-anchor:none"><div id="text-diff-line-694" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="693" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="673" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) { </span></div></div></div></div></div></div></div><div data-index="676" data-known-size="0" data-item-index="676" style="overflow-anchor:none"><div id="text-diff-line-695" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="694" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="674" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div></div></div></div></div><div data-index="677" data-known-size="0" data-item-index="677" style="overflow-anchor:none"><div id="text-diff-line-696" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="695" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="675" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="678" data-known-size="0" data-item-index="678" style="overflow-anchor:none"><div id="text-diff-line-697" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="696" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;page = &amp; $page; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="676" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;page = &amp; $page; </span></div></div></div></div></div></div></div><div data-index="679" data-known-size="0" data-item-index="679" style="overflow-anchor:none"><div id="text-diff-line-698" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="697" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;user = $to_user; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="677" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;user = $to_user; </span></div></div></div></div></div></div></div><div data-index="680" data-known-size="0" data-item-index="680" style="overflow-anchor:none"><div id="text-diff-line-699" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="698" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;subject = $subject; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="678" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;subject = $subject; </span></div></div></div></div></div></div></div><div data-index="681" data-known-size="0" data-item-index="681" style="overflow-anchor:none"><div id="text-diff-line-700" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="699" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;message_txt = $message_txt; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="679" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;message_txt = $message_txt; </span></div></div></div></div></div></div></div><div data-index="682" data-known-size="0" data-item-index="682" style="overflow-anchor:none"><div id="text-diff-line-701" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="700" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;message_html = $message_html; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="680" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $D-&gt;message_html = $message_html; </span></div></div></div></div></div></div></div><div data-index="683" data-known-size="0" data-item-index="683" style="overflow-anchor:none"><div id="text-diff-line-702" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="701" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = $page-&gt;load_template(&#x27;email/notifications_txt.php&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="681" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = $page-&gt;load_template(&#x27;email/notifications_txt.php&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="684" data-known-size="0" data-item-index="684" style="overflow-anchor:none"><div id="text-diff-line-703" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="702" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = $page-&gt;load_template(&#x27;email/notifications_html.php&#x27;, FALSE); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="682" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = $page-&gt;load_template(&#x27;email/notifications_html.php&#x27;, FALSE); </span></div></div></div></div></div></div></div><div data-index="685" data-known-size="0" data-item-index="685" style="overflow-anchor:none"><div id="text-diff-line-704" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="703" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($msgtxt) || empty($msghtml) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="683" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( empty($msgtxt) || empty($msghtml) ) { </span></div></div></div></div></div></div></div><div data-index="686" data-known-size="0" data-item-index="686" style="overflow-anchor:none"><div id="text-diff-line-705" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="704" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="684" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> return; </span></div></div></div></div></div></div></div><div data-index="687" data-known-size="0" data-item-index="687" style="overflow-anchor:none"><div id="text-diff-line-706" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="705" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="685" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="688" data-known-size="0" data-item-index="688" style="overflow-anchor:none"><div id="text-diff-line-707" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="706" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $C-&gt;SITE_URL != $C-&gt;DEF_SITE_URL ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="686" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( $C-&gt;SITE_URL != $C-&gt;DEF_SITE_URL ) { </span></div></div></div></div></div></div></div><div data-index="689" data-known-size="0" data-item-index="689" style="overflow-anchor:none"><div id="text-diff-line-708" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="707" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msgtxt); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="687" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msgtxt); </span></div></div></div></div></div></div></div><div data-index="690" data-known-size="0" data-item-index="690" style="overflow-anchor:none"><div id="text-diff-line-709" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="708" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msghtml); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="688" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msghtml); </span></div></div></div></div></div></div></div><div data-index="691" data-known-size="0" data-item-index="691" style="overflow-anchor:none"><div id="text-diff-line-710" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="709" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="689" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="692" data-known-size="0" data-item-index="692" style="overflow-anchor:none"><div id="text-diff-line-711" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="710" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;DEF_SITE_URL, $m) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="690" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;DEF_SITE_URL, $m) ) { </span></div></div></div></div></div></div></div><div data-index="693" data-known-size="0" data-item-index="693" style="overflow-anchor:none"><div id="text-diff-line-712" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="711" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = $m[1].$m[3]; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="691" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $siteurl = $m[1].$m[3]; </span></div></div></div></div></div></div></div><div data-index="694" data-known-size="0" data-item-index="694" style="overflow-anchor:none"><div id="text-diff-line-713" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="712" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msgtxt); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="692" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msgtxt = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msgtxt); </span></div></div></div></div></div></div></div><div data-index="695" data-known-size="0" data-item-index="695" style="overflow-anchor:none"><div id="text-diff-line-714" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="713" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msghtml); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="693" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $msghtml = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msghtml); </span></div></div></div></div></div></div></div><div data-index="696" data-known-size="0" data-item-index="696" style="overflow-anchor:none"><div id="text-diff-line-715" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="714" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="694" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="697" data-known-size="0" data-item-index="697" style="overflow-anchor:none"><div id="text-diff-line-716" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="715" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> do_send_mail_html($to_user-&gt;email, $subject, $msgtxt, $msghtml); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="695" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> do_send_mail_html($to_user-&gt;email, $subject, $msgtxt, $msghtml); </span></div></div></div></div></div></div></div><div data-index="698" data-known-size="0" data-item-index="698" style="overflow-anchor:none"><div id="text-diff-line-717" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="716" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="696" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="699" data-known-size="0" data-item-index="699" style="overflow-anchor:none"><div id="text-diff-line-718" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="717" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="697" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> </span></div></div></div></div></div></div></div><div data-index="700" data-known-size="0" data-item-index="700" style="overflow-anchor:none"><div id="text-diff-line-719" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="718" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_dashboard_tabstate($user_id, $tabs) </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="698" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> public function get_dashboard_tabstate($user_id, $tabs) </span></div></div></div></div></div></div></div><div data-index="701" data-known-size="0" data-item-index="701" style="overflow-anchor:none"><div id="text-diff-line-720" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="719" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="699" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> { </span></div></div></div></div></div></div></div><div data-index="702" data-known-size="0" data-item-index="702" style="overflow-anchor:none"><div id="text-diff-line-721" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="720" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $user_id = intval($user_id); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="700" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $user_id = intval($user_id); </span></div></div></div></div></div></div></div><div data-index="703" data-known-size="0" data-item-index="703" style="overflow-anchor:none"><div id="text-diff-line-722" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="721" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( is_array($tabs) ) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="701" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> if( is_array($tabs) ) { </span></div></div></div></div></div></div></div><div data-index="704" data-known-size="0" data-item-index="704" style="overflow-anchor:none"><div id="text-diff-line-723" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="722" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $result = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="702" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $result = array(); </span></div></div></div></div></div></div></div><div data-index="705" data-known-size="0" data-item-index="705" style="overflow-anchor:none"><div id="text-diff-line-724" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="723" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $tmp = array(); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="703" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $tmp = array(); </span></div></div></div></div></div></div></div><div data-index="706" data-known-size="0" data-item-index="706" style="overflow-anchor:none"><div id="text-diff-line-725" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="724" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($tabs as $tab) { </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="704" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> foreach($tabs as $tab) { </span></div></div></div></div></div></div></div><div data-index="707" data-known-size="0" data-item-index="707" style="overflow-anchor:none"><div id="text-diff-line-726" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="725" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $result[$tab] = 0; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="705" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $result[$tab] = 0; </span></div></div></div></div></div></div></div><div data-index="708" data-known-size="0" data-item-index="708" style="overflow-anchor:none"><div id="text-diff-line-727" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="726" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $tmp[] = &#x27;&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;&#x27;; </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="706" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> $tmp[] = &#x27;&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;&#x27;; </span></div></div></div></div></div></div></div><div data-index="709" data-known-size="0" data-item-index="709" style="overflow-anchor:none"><div id="text-diff-line-728" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="727" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="707" style="width:24px"></div><div class="diff-row-content_content__KNwGC"><span class="diff-chunk_chunk__MRDHe"> } </span></div></div></div></div></div></div></div><div data-index="710" data-known-size="0" data-item-index="710" style="overflow-anchor:none"><div id="text-diff-line-729" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="728" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $tmp = implode(&#x27;, &#x27;, $tmp); </span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="708" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq"><span class="diff-chunk_chunk__MRDHe"> $tmp = implode(&#x27;, &#x27;, $tmp); </span></div></div></div></div></div></div></div><div data-index="711" data-known-size="0" data-item-index="711" style="overflow-anchor:none"><div class="diff-block_unselectedBlock__pp6pu diff-block_diffBlock__rYjXE diff-block_unequalBlock__KAtDH"><div class=""><div class="diff-block_diffRows__2PJQL"><div id="text-diff-line-730" class=""><div class="diff-row_container__M0Hd1 diff-row_start__phKAH"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="729" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_removed__q8dVB diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab IN(&#x27;.$tmp.&#x27;) LIMIT &#x27;.count($tabs),</span></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="709" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_start__yH8GM undefined"><span class="diff-chunk_chunk__MRDHe undefined"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab IN(&#x27;.$tmp.&#x27;) LIMIT &#x27;.count($tabs),</span><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> FALSE); </span></div></div></div></div></div></div><div id="text-diff-line-731" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="710" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> while( $obj = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div><div id="text-diff-line-732" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="711" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $result[$obj-&gt;tab] = $obj-&gt;state==0 ? 0 : intval($obj-&gt;newposts); </span></div></div></div></div></div></div><div id="text-diff-line-733" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="712" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> if( $result[$obj-&gt;tab] &gt; 99 ) { </span></div></div></div></div></div></div><div id="text-diff-line-734" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="713" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $result[$obj-&gt;tab] = &#x27;99+&#x27;; </span></div></div></div></div></div></div><div id="text-diff-line-735" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="714" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> } </span></div></div></div></div></div></div><div id="text-diff-line-736" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="715" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> } </span></div></div></div></div></div></div><div id="text-diff-line-737" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="716" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> return $result; </span></div></div></div></div></div></div><div id="text-diff-line-738" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="717" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> } </span></div></div></div></div></div></div><div id="text-diff-line-739" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="718" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> else { </span></div></div></div></div></div></div><div id="text-diff-line-740" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="719" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tabs).&#x27;&quot; LIMIT 1&#x27;, FALSE); </span></div></div></div></div></div></div><div id="text-diff-line-741" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="720" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> if( ! $obj = $this-&gt;db2-&gt;fetch_object($r) ) { </span></div></div></div></div></div></div><div id="text-diff-line-742" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="721" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> return 0; </span></div></div></div></div></div></div><div id="text-diff-line-743" class=""><div class="diff-row_container__M0Hd1"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="722" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> } </span></div></div></div></div></div></div><div id="text-diff-line-744" class="diff-row_blockEnd__qqRFv"><div class="diff-row_container__M0Hd1 diff-row_end__yuk6z"><div class="diff-row_row__4lLb4"><div class="diff-line-side side-left diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_end__2Rfrq diff-row-content_empty__KgW5M"></div></div></div><div class="diff-line-side side-right diff-row_innerContent___0Ohp diff-row_side__BgANW"><div class="diff-row_sideInner__NFqIo"><div class="diff-row_lineNumber__zfoPu" data-content="723" style="width:24px"></div><div class="diff-row-content_content__KNwGC diff-row-content_inserted__Beonj diff-row-content_end__2Rfrq undefined"><span class="diff-chunk_chunk__MRDHe diff-chunk_inserted__dGN9u"> </span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="text-diff-output_locationBar__gvU0C" style="top:64px;max-height:calc(100vh - 58px - 12px)"><div class="location-bar_container__UNNwE"><button class="location-bar_block___A6qq" style="top:0%;bottom:94.76510067114094%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:5.23489932885906%;bottom:94.09395973154362%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:5.906040268456376%;bottom:93.95973154362416%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:6.0402684563758395%;bottom:93.8255033557047%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:6.174496644295302%;bottom:93.69127516778524%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:6.308724832214765%;bottom:93.55704697986577%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:6.442953020134229%;bottom:93.02013422818793%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:6.97986577181208%;bottom:92.88590604026845%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:7.114093959731544%;bottom:92.61744966442953%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:7.38255033557047%;bottom:92.48322147651007%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:7.516778523489933%;bottom:85.36912751677852%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:14.630872483221477%;bottom:85.23489932885906%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:14.76510067114094%;bottom:82.14765100671141%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:17.85234899328859%;bottom:82.01342281879195%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:17.986577181208055%;bottom:77.18120805369128%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:22.818791946308725%;bottom:76.24161073825503%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:23.758389261744966%;bottom:72.08053691275168%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:27.91946308724832%;bottom:71.67785234899328%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:28.322147651006713%;bottom:66.04026845637584%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:33.95973154362416%;bottom:65.90604026845638%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:34.09395973154362%;bottom:65.7718120805369%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:34.22818791946309%;bottom:65.36912751677852%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:34.630872483221474%;bottom:60%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:40%;bottom:59.86577181208054%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:40.13422818791946%;bottom:57.31543624161074%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:42.68456375838926%;bottom:57.04697986577181%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:42.95302013422819%;bottom:56.10738255033557%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:43.89261744966443%;bottom:55.973154362416096%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:44.0268456375839%;bottom:55.302013422818796%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:44.69798657718121%;bottom:55.167785234899334%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:44.83221476510067%;bottom:54.22818791946309%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:45.77181208053691%;bottom:54.09395973154363%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:45.90604026845638%;bottom:53.422818791946305%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:46.577181208053695%;bottom:53.288590604026844%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:46.71140939597315%;bottom:52.751677852349%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:47.24832214765101%;bottom:52.348993288590606%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:47.651006711409394%;bottom:52.21476510067114%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:47.78523489932886%;bottom:52.080536912751676%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:47.91946308724832%;bottom:51.81208053691275%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:48.18791946308725%;bottom:51.67785234899329%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:48.322147651006716%;bottom:51.54362416107383%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:48.45637583892618%;bottom:51.2751677852349%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:48.7248322147651%;bottom:32.3489932885906%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:67.6510067114094%;bottom:32.21476510067114%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:67.78523489932886%;bottom:26.84563758389261%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:73.15436241610739%;bottom:26.711409395973153%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:73.28859060402685%;bottom:16.10738255033557%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:83.89261744966443%;bottom:15.973154362416109%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:84.02684563758389%;bottom:10.46979865771812%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:89.53020134228188%;bottom:10.2013422818792%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button><button class="location-bar_block___A6qq" style="top:89.7986577181208%;bottom:2.0134228187919434%"><span class="location-bar_equal__ltAJx"></span><span class="location-bar_equal__ltAJx"></span></button><button class="location-bar_block___A6qq" style="top:97.98657718120806%;bottom:0%"><span class="location-bar_remove__gAHZg"></span><span class="location-bar_insert__9IjdM"></span></button></div></div></div></div></div></div></div></div></div></div><div class="hide-print diff-checker_diffInputContainer__nBdmU"><div class="sidebar_wrapper__4evdA sidebar_open__t5FYZ sidebar_wrapperLeft__NDtI_" style="--width:192px"><div class="sidebar_sidebar__tbKJg sidebar_fixedHeight__VeuD_"><div class="sidebar_background__uM3cu"></div><div class="sidebar_buttonWrapper__UVBah"><button class="sidebar_minimizeButton__5tktT button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh" aria-label="Minimize sidebar" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 5 6 8l3 3"></path></svg></button></div><div class="sidebar_header__cmSKp"><div class="sidebar_headerContent__HTG32"><div class="tab_tab__OVTjB"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10 2H2v12h12V6z" opacity="0.3"></path><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 10h6v4H5z"></path></svg><span class="tab_label__FzHsL">Les différences enregistrées</span></div></div><div class="divider_horizontal__Lcihu"></div></div><div class="sidebar_body__eiiLE sidebar_fixedHeight__VeuD_"><div class="sidebar_bodyHeightContainer__pQicn"><div class="sidebar_bodyOverflowWrapper__jRaNn"><div id="pdf-sidebar-body" class="sidebar_bodyContent__Hfo0d"></div></div></div></div></div><div class="sidebar_below__z36bV"></div></div><div class="diff-checker_diffInput__muKkB"><div class="text-diff-form_wrapper__pfuqu"><div id="editor"></div><form class="text-diff-form_diffForm__GujaT"><div class="text-diff-form_inputContainer__HA0A_"><div class="text-diff-input_wrapper__SAKZP"><div class="text-diff-input-header_container__2DxUR"><label for="diff-input-left" class="text-diff-input-header_headerLabel__fRGZt">Texte d&#x27;origine</label><div class="diff-upload-button_wrapper__D5SYQ"><label class="diff-upload-button_container__WWDH3" aria-label="Texte d&#x27;origine upload"><input type="file" class="diff-upload-button_fileInput__c7_rv" id="fileTexte-d&#x27;origineleft}" accept=""/><span class="diff-upload-button_uploadButton__WnsCE button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh button_fullWidth__uk78J"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 2v10M8 2 3 7m5-5 5 5"></path><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 15H2v-3h12z" opacity="0.2"></path></svg><span class="button_textContent__h9hLW">Open <!-- -->file</span></span></label></div></div><div class="text-diff-input_inputContainer__gRYqN"><textarea id="diff-input-left" class="text-diff-input_inputText__L5I39">&lt;?php class network { public $id; public $info; public $is_private; public $is_public; public function __construct() { $this-&gt;id = FALSE; $this-&gt;C = new stdClass; $this-&gt;info = new stdClass; $this-&gt;cache = &amp; $GLOBALS[&#x27;cache&#x27;]; $this-&gt;db1 = &amp; $GLOBALS[&#x27;db1&#x27;]; $this-&gt;db2 = &amp; $GLOBALS[&#x27;db2&#x27;]; } public function LOAD() { if( $this-&gt;id ) { return FALSE; } $this-&gt;load_network_settings(); $this-&gt;info = (object) array( &#x27;id&#x27; =&gt; 1, ); $this-&gt;is_private = FALSE; $this-&gt;is_public = TRUE; $this-&gt;id = $this-&gt;info-&gt;id; return $this-&gt;id; } public function get_latest_dogum($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_dogum_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $num = 40; $tarih = pdate(&quot;m-d&quot;, time()); $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users where birthdate LIKE &quot;%&#x27;.$tarih.&#x27;&quot; ORDER BY id DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function load_network_settings() { $db = &amp;$this-&gt;db1; $r = $db-&gt;query(&#x27;SELECT * FROM settings&#x27;, FALSE); while($obj = $db-&gt;fetch_object($r)) { $this-&gt;C-&gt;{$obj-&gt;word} = stripslashes($obj-&gt;value); } global $C; foreach($this-&gt;C as $k=&gt;$v) { $C-&gt;$k = &amp; $this-&gt;C-&gt;$k; } if( ! isset($C-&gt;ATTACH_LINK_DISABLED) ) { $C-&gt;ATTACH_LINK_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_FILE_DISABLED) ) { $C-&gt;ATTACH_FILE_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_IMAGE_DISABLED) ) { $C-&gt;ATTACH_IMAGE_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_VIDEO_DISABLED) ) { $C-&gt;ATTACH_VIDEO_DISABLED = 0; } if( ! isset($C-&gt;HDR_SHOW_COMPANY) ) { $C-&gt;HDR_SHOW_COMPANY = 1; } if( ! isset($C-&gt;HDR_SHOW_LOGO) ) { $C-&gt;HDR_SHOW_LOGO = 1; } if( ! isset($C-&gt;HDR_CUSTOM_LOGO) ) { $C-&gt;HDR_CUSTOM_LOGO = &#x27;&#x27;; } if( ! isset($C-&gt;HDR_SHOW_FAVICON) ) { $C-&gt;HDR_SHOW_FAVICON = 1; } if( ! isset($C-&gt;HDR_CUSTOM_FAVICON) ) { $C-&gt;HDR_CUSTOM_FAVICON = &#x27;&#x27;; } if( ! isset($C-&gt;MOBI_DISABLED) ) { $C-&gt;MOBI_DISABLED = 0; } $current_language = new stdClass; include($C-&gt;INCPATH.&#x27;languages/&#x27;.$C-&gt;LANGUAGE.&#x27;/language.php&#x27;); setlocale(LC_ALL, $current_language-&gt;php_locale); if( ! isset($C-&gt;DEF_TIMEZONE) ) { $C-&gt;DEF_TIMEZONE = $current_language-&gt;php_timezone; } date_default_timezone_set($C-&gt;DEF_TIMEZONE); if( !isset($C-&gt;SITE_TITLE) || empty($C-&gt;SITE_TITLE) ) { $C-&gt;SITE_TITLE = &#x27;Sharetronix&#x27;; } $C-&gt;OUTSIDE_SITE_TITLE = $C-&gt;SITE_TITLE; } public function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( empty($uname) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,username:&#x27;.strtolower($uname); $uid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $uid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE username=&quot;&#x27;.$this-&gt;db2-&gt;escape($uname).&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $uid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! is_valid_email($email) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usermail:&#x27;.strtolower($email); $uid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $uid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE email=&quot;&#x27;.$this-&gt;db2-&gt;escape($email).&#x27;&quot; AND sus_time&lt;&quot;&#x27;.time().&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $uid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_user_by_id($uid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userid:&#x27;.$uid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users WHERE id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;active = intval($o-&gt;active); $o-&gt;fullname = stripslashes($o-&gt;fullname); $o-&gt;about_me = stripslashes($o-&gt;about_me); $o-&gt;tags = trim(stripslashes($o-&gt;tags)); $o-&gt;tags = empty($o-&gt;tags) ? array() : explode(&#x27;, &#x27;, $o-&gt;tags); if( empty($o-&gt;avatar) ) { if($o-&gt;gender==&#x27;m&#x27;){ $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_MUSER; }elseif($o-&gt;gender==&#x27;f&#x27;){ $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_FUSER; }else{ $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } } $o-&gt;age = &#x27;&#x27;; $bd_day = intval( substr($o-&gt;birthdate, 8, 2) ); $bd_month = intval( substr($o-&gt;birthdate, 5, 2) ); $bd_year = intval( substr($o-&gt;birthdate, 0, 4) ); if( $bd_day&gt;0 &amp;&amp; $bd_month&gt;0 &amp;&amp; $bd_year&gt;0 ) { if( date(&#x27;Y&#x27;) &gt; $bd_year ) { $o-&gt;age = date(&#x27;Y&#x27;) - $bd_year; if( $bd_month&gt;date(&#x27;m&#x27;) || ($bd_month==date(&#x27;m&#x27;) &amp;&amp; $bd_day&gt;date(&#x27;d&#x27;)) ) { $o-&gt;age --; } } } $o-&gt;position = stripslashes($o-&gt;position); $o-&gt;location = stripslashes($o-&gt;location); $o-&gt;network_id = $this-&gt;id; $o-&gt;user_details = FALSE; $rr = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_details WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $ud = $this-&gt;db2-&gt;fetch_object($rr) ) { $o-&gt;user_details = new stdClass; foreach($ud as $k=&gt;$v) { $o-&gt;user_details-&gt;$k = stripslashes($v); } } $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } //////////////////////// User Like /////////////////////////// public function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userlikes:&#x27;.$uid.($type ? &#x27;,type:&#x27;.$type : &#x27;&#x27;); if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = new stdClass; $data-&gt;likers = array(); $data-&gt;like_users = array(); if( ($type &amp;&amp; $type == &#x27;hislikers&#x27;) || ($type === FALSE) ){ $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_liked WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;likers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; } } if( ($type &amp;&amp; $type == &#x27;helikes&#x27;) || ($type === FALSE) ){ $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_liked WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;like_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; } } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } ///////////////////////// User Like ///////////////////////////// public function get_user_follows($uid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userfollows:&#x27;.$uid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = new stdClass; $data-&gt;followers = array(); $data-&gt;follow_users = array(); $data-&gt;follow_groups = array(); $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_followed WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;followers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_followed WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;follow_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;follow_groups[intval($o-&gt;group_id)] = $o-&gt;group_from_postid; } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } public function get_mostactive_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $days = 5; $num = 20; $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;user_id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_latest_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $num = 20; $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE active=1 OR sus_time&lt;&quot;&#x27;.time().&#x27;&quot; ORDER BY id DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_online_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,online_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $num = 30; $time = 15*60; $this-&gt;db2-&gt;query(&#x27;SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT &#x27;.($num+1)); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( $obj-&gt;lastclick_date &lt; time() - $time ) { break; } $data[] = $this-&gt;get_user_by_id($obj-&gt;id); } $data = array_slice($data, 0, $num); $this-&gt;cache-&gt;set( $cachekey, $data, 10*60 ); return $data; } public function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( empty($gname) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupname:&#x27;.strtolower($gname); $gid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$gid &amp;&amp; TRUE!=$gid ) { return $return_id ? $gid : $this-&gt;get_group_by_id($gid); } $gid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM groups WHERE groupname=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; OR title=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $gid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $gid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $gid : $this-&gt;get_group_by_id($gid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_group_by_id($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $gid = intval($gid); if( 0 == $gid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupid:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;title = stripslashes($o-&gt;title); $o-&gt;is_public = $o-&gt;is_public==1; $o-&gt;is_private = !$o-&gt;is_public; $o-&gt;is_deleted = FALSE; $o-&gt;about_me = stripslashes($o-&gt;about_me); if( empty($o-&gt;avatar) ) { $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; } $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_deleted_group_by_id($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $gid = intval($gid); if( 0 == $gid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,deletedgroupid:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups_deleted WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;title = stripslashes($o-&gt;title); $o-&gt;is_public = $o-&gt;is_public==1; $o-&gt;is_private = !$o-&gt;is_public; $o-&gt;is_deleted = TRUE; $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_group_invited_members($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_invited_members:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = array(); $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id FROM groups_private_members WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); while($obj = $this-&gt;db2-&gt;fetch_object($r)) { $data[] = intval($obj-&gt;user_id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } public function get_group_members($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_members:&#x27;.$gid; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); if($g-&gt;is_public == 0) { $u_in = $this-&gt;get_group_invited_members($gid, $force_refresh); $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE (active=1 OR sus_time&lt;&quot;&#x27;.time().&#x27;&quot;) AND is_network_admin=1&#x27;, FALSE); while($sdf = $this-&gt;db2-&gt;fetch_object($r)) { $u_in[] = intval($sdf-&gt;id); } $u_in = array_unique($u_in); $u_in = count($u_in)==0 ? &#x27;-1&#x27; : implode(&#x27;, &#x27;, $u_in); $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; AND user_id IN(&#x27;.$u_in.&#x27;) ORDER BY id ASC&#x27;, FALSE); } else { $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); } while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data[intval($o-&gt;user_id)] = intval($o-&gt;group_from_postid); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_last_post_id() { if( ! $this-&gt;id ) { return 0; } return intval($this-&gt;db2-&gt;fetch_field(&#x27;SELECT MAX(id) FROM posts&#x27;)); } public function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE) { $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags:&#x27;.md5($in_sql); $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return array_slice($data, 0, $count); } // this is to avoid running the query below multiple times at once $inprogressflag = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags_loading&#x27;; if( $this-&gt;cache-&gt;get($inprogressflag) == 12345 ) { return array(); } $this-&gt;cache-&gt;set($inprogressflag, 12345, 5*60); // $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT message, date FROM posts WHERE api_id&lt;&gt;2 AND api_id&lt;&gt;6 AND posttags&lt;&gt;0 &#x27;.$in_sql.&#x27; ORDER BY id DESC LIMIT 1000&#x27;); while($tmp = $this-&gt;db2-&gt;fetch_object()) { if( ! preg_match_all(&#x27;/\#([א-תÀ-ÿ一-龥а-яa-z0-9\-_]{1,50})/iu&#x27;, stripslashes($tmp-&gt;message), $matches, PREG_PATTERN_ORDER) ) { continue; } $thisposttags = array(); foreach($matches[1] as $tg) { $thisposttags[] = mb_strtolower(trim($tg)); } $thisposttags = array_unique($thisposttags); $weight = 1; if( $tmp-&gt;date &gt; time()-24*3600 ) { $weight = 100; } elseif( $tmp-&gt;date &gt; time()-7*24*3600 ) { $weigth = 20; } elseif( $tmp-&gt;date &gt; time()-30*24*3600 ) { $weight = 5; } foreach($thisposttags as $tg) { if( ! isset($data[$tg]) ) { $data[$tg] = 0; } $data[$tg] += $weight; } } arsort($data); $data = array_keys($data); $data = array_slice($data, 0, 50); $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $this-&gt;cache-&gt;del($inprogressflag); return array_slice($data, 0, $count); } public function get_user_notif_rules($user_id, $force_refresh=FALSE) { $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usr_ntf_rulz:&#x27;.$user_id; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { require_once( $GLOBALS[&#x27;C&#x27;]-&gt;INCPATH.&#x27;helpers/func_signup.php&#x27; ); set_user_default_notification_rules($user_id); } $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { return FALSE; } unset($obj-&gt;user_id); $this-&gt;cache-&gt;set($cachekey, $obj, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $obj; } public function get_posts_api($id, $force_refresh=FALSE) { $id = intval($id); static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_app:&#x27;.$id; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT id, name FROM applications WHERE id=&quot;&#x27;.$id.&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $data = $this-&gt;db2-&gt;fetch_object($r) ) { $data-&gt;name = stripslashes($data-&gt;name); $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } return FALSE; } public function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action=&#x27;ignore&#x27;) { // $if_exists_action: &#x27;ignore&#x27; or &#x27;replace&#x27; or &#x27;quit&#x27; - please use &#x27;ignore&#x27;, otherwise it could cause heavy performance leaks $if_exists_action=&#x27;ignore&#x27;; global $C; $to_user_id = intval($to_user_id); $in_group_id = intval($in_group_id); if( $C-&gt;API_ID == 1 ) { if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;SITE_URL, $m) ) { $siteurl = $m[1].$m[3]; foreach($lang_params as &amp;$p) { $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); } } elseif( preg_match(&#x27;/\/m(\/|$)/iu&#x27;, $C-&gt;SITE_URL, $m) ) { $siteurl = preg_replace(&#x27;/\/m(\/|$)/&#x27;, &#x27;&#x27;, $C-&gt;SITE_URL); $siteurl = rtrim($siteurl,&#x27;/&#x27;).&#x27;/&#x27;; foreach($lang_params as &amp;$p) { $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); } } } $data = (object) array ( &#x27;type&#x27; =&gt; &#x27;notif&#x27;, &#x27;to_user_id&#x27; =&gt; $to_user_id, &#x27;in_group_id&#x27; =&gt; $in_group_id, &#x27;lang_key&#x27; =&gt; $lang_key, &#x27;lang_params&#x27; =&gt; $lang_params, &#x27;from_user_id&#x27; =&gt; $GLOBALS[&#x27;user&#x27;]-&gt;id, ); $data = $this-&gt;db2-&gt;e(serialize($data)); if( $to_user_id &gt; 0 ) { if( $if_exists_action != &#x27;ignore&#x27; ) { $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;0&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($obj = $this-&gt;db2-&gt;fetch_object($r)) { if( $if_exists_action == &#x27;quit&#x27; ) { return; } if( $if_exists_action == &#x27;replace&#x27; ) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); $this-&gt;db2-&gt;query(&#x27;DELETE FROM post_userbox WHERE post_id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; &#x27;, FALSE); } } } $this-&gt;db2-&gt;query(&#x27;INSERT INTO posts SET user_id=&quot;0&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); // $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO post_userbox SET user_id=&quot;&#x27;.$to_user_id.&#x27;&quot;, post_id=&quot;&#x27;.intval($this-&gt;db2-&gt;insert_id()).&#x27;&quot; &#x27;); } elseif( $in_group_id &gt; 0 ) { if( $if_exists_action != &#x27;ignore&#x27; ) { $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;&#x27;.$in_group_id.&#x27;&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($obj = $this-&gt;db2-&gt;fetch_object($r)) { if( $if_exists_action == &#x27;quit&#x27; ) { return; } if( $if_exists_action == &#x27;replace&#x27; ) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); } } } $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO posts SET group_id=&quot;&#x27;.$in_group_id.&#x27;&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); } } public function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE) { global $C, $D, $page; if( $inD ) { foreach($inD as $k=&gt;$v) { $D-&gt;$k = $v; } } $to_user = $this-&gt;get_user_by_id($to_user_id); if( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) { return; } $D-&gt;page = &amp; $page; $D-&gt;user = $to_user; $D-&gt;subject = $subject; $D-&gt;message_txt = $message_txt; $D-&gt;message_html = $message_html; $msgtxt = $page-&gt;load_template(&#x27;email/notifications_txt.php&#x27;, FALSE); $msghtml = $page-&gt;load_template(&#x27;email/notifications_html.php&#x27;, FALSE); if( empty($msgtxt) || empty($msghtml) ) { return; } if( $C-&gt;SITE_URL != $C-&gt;DEF_SITE_URL ) { $msgtxt = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msgtxt); $msghtml = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msghtml); } if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;DEF_SITE_URL, $m) ) { $siteurl = $m[1].$m[3]; $msgtxt = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msgtxt); $msghtml = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msghtml); } do_send_mail_html($to_user-&gt;email, $subject, $msgtxt, $msghtml); } public function get_dashboard_tabstate($user_id, $tabs) { $user_id = intval($user_id); if( is_array($tabs) ) { $result = array(); $tmp = array(); foreach($tabs as $tab) { $result[$tab] = 0; $tmp[] = &#x27;&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;&#x27;; } $tmp = implode(&#x27;, &#x27;, $tmp); $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab IN(&#x27;.$tmp.&#x27;) LIMIT &#x27;.count($tabs), FALSE); while( $obj = $this-&gt;db2-&gt;fetch_object($r) ) { $result[$obj-&gt;tab] = $obj-&gt;state==0 ? 0 : intval($obj-&gt;newposts); if( $result[$obj-&gt;tab] &gt; 99 ) { $result[$obj-&gt;tab] = &#x27;99+&#x27;; } } return $result; } else { $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tabs).&#x27;&quot; LIMIT 1&#x27;, FALSE); if( ! $obj = $this-&gt;db2-&gt;fetch_object($r) ) { return 0; } $result = $obj-&gt;state==0 ? 0 : intval($obj-&gt;newposts); if( $result &gt; 99 ) { $result = &#x27;99+&#x27;; } return $result; } } public function set_dashboard_tabstate($user_id, $tab, $withnum=0) { $user_id = intval($user_id); $withnum = intval($withnum); $currnum = $this-&gt;get_dashboard_tabstate($user_id, $tab); if( $currnum==0 &amp;&amp; $withnum&lt;=0 ) { return TRUE; } if( $currnum==0 &amp;&amp; $withnum&gt;0 ) { $this-&gt;db2-&gt;query(&#x27;REPLACE INTO users_dashboard_tabs SET user_id=&quot;&#x27;.$user_id.&#x27;&quot;, tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;, state=&quot;1&quot;, newposts=&quot;&#x27;.$withnum.&#x27;&quot; &#x27;, FALSE); return TRUE; } if( $currnum&gt;0 &amp;&amp; $withnum==0 ) { $this-&gt;reset_dashboard_tabstate($user_id, $tab); return TRUE; } if( $currnum&gt;0 &amp;&amp; $withnum&gt;0 ) { $withnum += $currnum; $this-&gt;db2-&gt;query(&#x27;REPLACE INTO users_dashboard_tabs SET user_id=&quot;&#x27;.$user_id.&#x27;&quot;, tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;, state=&quot;1&quot;, newposts=&quot;&#x27;.$withnum.&#x27;&quot; &#x27;, FALSE); return TRUE; } } public function reset_dashboard_tabstate($user_id, $tab) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot; &#x27;, FALSE); return TRUE; } public function get_user_num_comments($fid) { $nums_q = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts_comments WHERE user_id=&quot;&#x27;.$fid.&#x27;&quot;&#x27; , FALSE); $num_com = $this-&gt;db2-&gt;num_rows($nums_q); return $num_com; } public function if_i_ignore($mid,$uid) { $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users_ignores WHERE ignor_id=&quot;&#x27;.$mid.&#x27;&quot; AND user_id=&quot;&#x27;.$uid.&#x27;&quot; &#x27;); if($this-&gt;db2-&gt;num_rows($r) &gt; 0) { return TRUE; } return FALSE; } public function get_mostactive_userss($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, username, fullname, avatar, num_posts AS c FROM users WHERE num_posts &gt; 0 ORDER BY num_posts DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $data[$obj-&gt;id] = array($obj-&gt;username, $obj-&gt;fullname, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostcommenting_users($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostcommenting_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;user_id); if( !$usr ){ continue; } $data[$obj-&gt;user_id] = array($usr-&gt;username, $usr-&gt;fullname, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostcommented_users($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostcommented_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id&lt;&gt;0 AND posts_comments.user_id&lt;&gt;0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;uid); if( !$usr ){ continue; } $data[$obj-&gt;uid] = array($usr-&gt;username, $usr-&gt;fullname, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowed_users($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostfollowed_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, username, fullname, avatar, num_followers AS c FROM users WHERE num_followers &gt; 0 ORDER BY num_followers DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $data[$obj-&gt;id] = array($obj-&gt;username, $obj-&gt;fullname, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowing_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mfollowing_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;who); if( !$usr ){ continue; } $data[$obj-&gt;who] = array($usr-&gt;username, $usr-&gt;fullname, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowed_groups($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostfollowed_groupz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, groupname, title, avatar, num_followers AS c FROM groups WHERE num_followers&gt;0 ORDER BY num_followers DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; } $data[$obj-&gt;id] = array($obj-&gt;groupname, $obj-&gt;title, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_followers_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,followers_users&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, username, avatar, num_posts, num_followers AS c FROM users WHERE num_followers &gt; 0 ORDER BY num_followers DESC LIMIT 6&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $data[$obj-&gt;id] = array($obj-&gt;username, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostactive_groups($force_refresh=TRUE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_groupz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id&lt;&gt;0 AND group_id&lt;&gt;0 AND api_id&lt;&gt;2 AND api_id&lt;&gt;6 GROUP BY group_id ORDER BY c DESC LIMIT 14&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $g = $this-&gt;get_group_by_id($obj-&gt;group_id); if( !$g ){ continue; } $data[$obj-&gt;group_id] = array($g-&gt;groupname, $g-&gt;title, $g-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } } ?&gt; </textarea></div></div><div class="text-diff-input_wrapper__SAKZP"><div class="text-diff-input-header_container__2DxUR"><label for="diff-input-right" class="text-diff-input-header_headerLabel__fRGZt">Texte modifié</label><div class="diff-upload-button_wrapper__D5SYQ"><label class="diff-upload-button_container__WWDH3" aria-label="Texte modifié upload"><input type="file" class="diff-upload-button_fileInput__c7_rv" id="fileTexte-modifiéright}" accept=""/><span class="diff-upload-button_uploadButton__WnsCE button_button__bjA22 button_text__gx7qj button_base__hYGrz button_default__8ts32 button_basic__UWiCh button_fullWidth__uk78J"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8 2v10M8 2 3 7m5-5 5 5"></path><path fill="currentColor" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14 15H2v-3h12z" opacity="0.2"></path></svg><span class="button_textContent__h9hLW">Open <!-- -->file</span></span></label></div></div><div class="text-diff-input_inputContainer__gRYqN"><textarea id="diff-input-right" class="text-diff-input_inputText__L5I39">&lt;?php class network { public $id; public $info; public $is_private; public $is_public; public function __construct() { $this-&gt;id = FALSE; $this-&gt;C = new stdClass; $this-&gt;info = new stdClass; $this-&gt;cache = &amp; $GLOBALS[&#x27;cache&#x27;]; $this-&gt;db1 = &amp; $GLOBALS[&#x27;db1&#x27;]; $this-&gt;db2 = &amp; $GLOBALS[&#x27;db2&#x27;]; } public function LOAD() { if( $this-&gt;id ) { return FALSE; } $this-&gt;load_network_settings(); $this-&gt;info = (object) array( &#x27;id&#x27; =&gt; 1, ); $this-&gt;is_private = FALSE; $this-&gt;is_public = TRUE; $this-&gt;id = $this-&gt;info-&gt;id; return $this-&gt;id; } public function get_latest_dogum($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $data = array(); $num = 20; $tarih = pdate(&quot;m-d&quot;, time()); $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users where birthdate LIKE &quot;%&#x27;.$tarih.&#x27;&quot; ORDER BY id DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;id); } return $data; } public function load_network_settings() { $db = &amp;$this-&gt;db1; $r = $db-&gt;query(&#x27;SELECT * FROM settings&#x27;, FALSE); while($obj = $db-&gt;fetch_object($r)) { $this-&gt;C-&gt;{$obj-&gt;word} = stripslashes($obj-&gt;value); } global $C; foreach($this-&gt;C as $k=&gt;$v) { $C-&gt;$k = &amp; $this-&gt;C-&gt;$k; } if( ! isset($C-&gt;ATTACH_LINK_DISABLED) ) { $C-&gt;ATTACH_LINK_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_FILE_DISABLED) ) { $C-&gt;ATTACH_FILE_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_IMAGE_DISABLED) ) { $C-&gt;ATTACH_IMAGE_DISABLED = 0; } if( ! isset($C-&gt;ATTACH_VIDEO_DISABLED) ) { $C-&gt;ATTACH_VIDEO_DISABLED = 0; } if( ! isset($C-&gt;HDR_SHOW_COMPANY) ) { $C-&gt;HDR_SHOW_COMPANY = 1; } if( ! isset($C-&gt;HDR_SHOW_LOGO) ) { $C-&gt;HDR_SHOW_LOGO = 1; } if( ! isset($C-&gt;HDR_CUSTOM_LOGO) ) { $C-&gt;HDR_CUSTOM_LOGO = &#x27;&#x27;; } if( ! isset($C-&gt;HDR_SHOW_FAVICON) ) { $C-&gt;HDR_SHOW_FAVICON = 1; } if( ! isset($C-&gt;HDR_CUSTOM_FAVICON) ) { $C-&gt;HDR_CUSTOM_FAVICON = &#x27;&#x27;; } if( ! isset($C-&gt;MOBI_DISABLED) ) { $C-&gt;MOBI_DISABLED = 0; } $current_language = new stdClass; include($C-&gt;INCPATH.&#x27;languages/&#x27;.$C-&gt;LANGUAGE.&#x27;/language.php&#x27;); setlocale(LC_ALL, $current_language-&gt;php_locale); if( ! isset($C-&gt;DEF_TIMEZONE) ) { $C-&gt;DEF_TIMEZONE = $current_language-&gt;php_timezone; } date_default_timezone_set($C-&gt;DEF_TIMEZONE); if( !isset($C-&gt;SITE_TITLE) || empty($C-&gt;SITE_TITLE) ) { $C-&gt;SITE_TITLE = &#x27;Sharetronix&#x27;; } $C-&gt;OUTSIDE_SITE_TITLE = $C-&gt;SITE_TITLE; } public function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( empty($uname) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,username:&#x27;.strtolower($uname); $uid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $uid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE username=&quot;&#x27;.$this-&gt;db2-&gt;escape($uname).&#x27;&quot; AND active=1 LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $uid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! is_valid_email($email) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usermail:&#x27;.strtolower($email); $uid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$uid &amp;&amp; TRUE!=$force_refresh ) { return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $uid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE email=&quot;&#x27;.$this-&gt;db2-&gt;escape($email).&#x27;&quot; AND active=1 LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $uid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $uid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $uid : $this-&gt;get_user_by_id($uid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_user_by_id($uid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userid:&#x27;.$uid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users WHERE id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;active = intval($o-&gt;active); $o-&gt;fullname = stripslashes($o-&gt;fullname); $o-&gt;about_me = stripslashes($o-&gt;about_me); $o-&gt;tags = trim(stripslashes($o-&gt;tags)); $o-&gt;tags = empty($o-&gt;tags) ? array() : explode(&#x27;, &#x27;, $o-&gt;tags); if( empty($o-&gt;avatar) ) { $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $o-&gt;age = &#x27;&#x27;; $bd_day = intval( substr($o-&gt;birthdate, 8, 2) ); $bd_month = intval( substr($o-&gt;birthdate, 5, 2) ); $bd_year = intval( substr($o-&gt;birthdate, 0, 4) ); if( $bd_day&gt;0 &amp;&amp; $bd_month&gt;0 &amp;&amp; $bd_year&gt;0 ) { if( date(&#x27;Y&#x27;) &gt; $bd_year ) { $o-&gt;age = date(&#x27;Y&#x27;) - $bd_year; if( $bd_month&gt;date(&#x27;m&#x27;) || ($bd_month==date(&#x27;m&#x27;) &amp;&amp; $bd_day&gt;date(&#x27;d&#x27;)) ) { $o-&gt;age --; } } } $o-&gt;position = stripslashes($o-&gt;position); $o-&gt;location = stripslashes($o-&gt;location); $o-&gt;network_id = $this-&gt;id; $o-&gt;user_details = FALSE; $rr = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_details WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $ud = $this-&gt;db2-&gt;fetch_object($rr) ) { $o-&gt;user_details = new stdClass; foreach($ud as $k=&gt;$v) { $o-&gt;user_details-&gt;$k = stripslashes($v); } } $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } //////////////////////// User Like /////////////////////////// public function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userlikes:&#x27;.$uid.($type ? &#x27;,type:&#x27;.$type : &#x27;&#x27;); if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = new stdClass; $data-&gt;likers = array(); $data-&gt;like_users = array(); if( ($type &amp;&amp; $type == &#x27;hislikers&#x27;) || ($type === FALSE) ){ $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_liked WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;likers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; } } if( ($type &amp;&amp; $type == &#x27;helikes&#x27;) || ($type === FALSE) ){ $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_liked WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;like_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; } } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } ///////////////////////// User Like ///////////////////////////// public function get_user_follows($uid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $uid = intval($uid); if( 0 == $uid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,userfollows:&#x27;.$uid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = new stdClass; $data-&gt;followers = array(); $data-&gt;follow_users = array(); $data-&gt;follow_groups = array(); $r = $this-&gt;db2-&gt;query(&#x27;SELECT who, whom_from_postid FROM users_followed WHERE whom=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;followers[intval($o-&gt;who)] = $o-&gt;whom_from_postid; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT whom, whom_from_postid FROM users_followed WHERE who=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;follow_users[intval($o-&gt;whom)] = $o-&gt;whom_from_postid; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=&quot;&#x27;.$uid.&#x27;&quot; ORDER BY id DESC&#x27;, FALSE); while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data-&gt;follow_groups[intval($o-&gt;group_id)] = $o-&gt;group_from_postid; } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } public function get_mostactive_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $days = 5; $num = 20; $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;user_id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_latest_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,latest_userz&#x27;; $data = $cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $num = 20; $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE active=1 ORDER BY id DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { $data[] = intval($obj-&gt;id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_online_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,online_userz&#x27;; $data = $cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $num = 20; $this-&gt;db2-&gt;query(&#x27;SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT &#x27;.$num); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( $obj-&gt;lastclick_date &lt; time()-30*60 ) { break; } $data[] = intval($obj-&gt;id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( empty($gname) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupname:&#x27;.strtolower($gname); $gid = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$gid &amp;&amp; TRUE!=$gid ) { return $return_id ? $gid : $this-&gt;get_group_by_id($gid); } $gid = FALSE; $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM groups WHERE groupname=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; OR title=&quot;&#x27;.$this-&gt;db2-&gt;escape($gname).&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $o = $this-&gt;db2-&gt;fetch_object($r) ) { $gid = intval($o-&gt;id); $this-&gt;cache-&gt;set($cachekey, $gid, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $return_id ? $gid : $this-&gt;get_group_by_id($gid); } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_group_by_id($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $gid = intval($gid); if( 0 == $gid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,groupid:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;title = stripslashes($o-&gt;title); $o-&gt;is_public = $o-&gt;is_public==1; $o-&gt;is_private = !$o-&gt;is_public; $o-&gt;is_deleted = FALSE; $o-&gt;about_me = stripslashes($o-&gt;about_me); if( empty($o-&gt;avatar) ) { $o-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; } $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_deleted_group_by_id($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $gid = intval($gid); if( 0 == $gid ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,deletedgroupid:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT * FROM groups_deleted WHERE id=&quot;&#x27;.$gid.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($o = $this-&gt;db2-&gt;fetch_object($r)) { $o-&gt;title = stripslashes($o-&gt;title); $o-&gt;is_public = $o-&gt;is_public==1; $o-&gt;is_private = !$o-&gt;is_public; $o-&gt;is_deleted = TRUE; $this-&gt;cache-&gt;set($cachekey, $o, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $o; return $o; } $this-&gt;cache-&gt;del($cachekey); return FALSE; } public function get_group_invited_members($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { return FALSE; } static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_invited_members:&#x27;.$gid; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $data = array(); $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id FROM groups_private_members WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); while($obj = $this-&gt;db2-&gt;fetch_object($r)) { $data[] = intval($obj-&gt;user_id); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } public function get_group_members($gid, $force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } if( ! $g = $this-&gt;get_group_by_id($gid, $force_refresh) ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,group_members:&#x27;.$gid; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); if($g-&gt;is_public == 0) { $u_in = $this-&gt;get_group_invited_members($gid, $force_refresh); $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM users WHERE active=1 AND is_network_admin=1&#x27;, FALSE); while($sdf = $this-&gt;db2-&gt;fetch_object($r)) { $u_in[] = intval($sdf-&gt;id); } $u_in = array_unique($u_in); $u_in = count($u_in)==0 ? &#x27;-1&#x27; : implode(&#x27;, &#x27;, $u_in); $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; AND user_id IN(&#x27;.$u_in.&#x27;) ORDER BY id ASC&#x27;, FALSE); } else { $r = $this-&gt;db2-&gt;query(&#x27;SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=&quot;&#x27;.$g-&gt;id.&#x27;&quot; ORDER BY id ASC&#x27;, FALSE); } while($o = $this-&gt;db2-&gt;fetch_object($r)) { $data[intval($o-&gt;user_id)] = intval($o-&gt;group_from_postid); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_last_post_id() { if( ! $this-&gt;id ) { return 0; } return intval($this-&gt;db2-&gt;fetch_field(&#x27;SELECT MAX(id) FROM posts&#x27;)); } public function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE) { $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags:&#x27;.md5($in_sql); $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return array_slice($data, 0, $count); } // this is to avoid running the query below multiple times at once $inprogressflag = &#x27;n:&#x27;.$this-&gt;id.&#x27;,active_tags_loading&#x27;; if( $this-&gt;cache-&gt;get($inprogressflag) == 12345 ) { return array(); } $this-&gt;cache-&gt;set($inprogressflag, 12345, 5*60); // $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT message, date FROM posts WHERE api_id&lt;&gt;2 AND api_id&lt;&gt;6 AND posttags&lt;&gt;0 &#x27;.$in_sql.&#x27; ORDER BY id DESC LIMIT 1000&#x27;); while($tmp = $this-&gt;db2-&gt;fetch_object()) { if( ! preg_match_all(&#x27;/\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\-_]{1,50})/iu&#x27;, stripslashes($tmp-&gt;message), $matches, PREG_PATTERN_ORDER) ) { continue; } $thisposttags = array(); foreach($matches[1] as $tg) { $thisposttags[] = mb_strtolower(trim($tg)); } $thisposttags = array_unique($thisposttags); $weight = 1; if( $tmp-&gt;date &gt; time()-24*3600 ) { $weight = 100; } elseif( $tmp-&gt;date &gt; time()-7*24*3600 ) { $weigth = 20; } elseif( $tmp-&gt;date &gt; time()-30*24*3600 ) { $weight = 5; } foreach($thisposttags as $tg) { if( ! isset($data[$tg]) ) { $data[$tg] = 0; } $data[$tg] += $weight; } } arsort($data); $data = array_keys($data); $data = array_slice($data, 0, 50); $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $this-&gt;cache-&gt;del($inprogressflag); return array_slice($data, 0, $count); } public function get_user_notif_rules($user_id, $force_refresh=FALSE) { $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,usr_ntf_rulz:&#x27;.$user_id; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { require_once( $GLOBALS[&#x27;C&#x27;]-&gt;INCPATH.&#x27;helpers/func_signup.php&#x27; ); set_user_default_notification_rules($user_id); } $this-&gt;db2-&gt;query(&#x27;SELECT * FROM users_notif_rules WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; LIMIT 1&#x27;); if( ! $obj = $this-&gt;db2-&gt;fetch_object() ) { return FALSE; } unset($obj-&gt;user_id); $this-&gt;cache-&gt;set($cachekey, $obj, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $obj; } public function get_posts_api($id, $force_refresh=FALSE) { $id = intval($id); static $loaded = array(); $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_app:&#x27;.$id; if( isset($loaded[$cachekey]) &amp;&amp; TRUE!=$force_refresh ) { return $loaded[$cachekey]; } $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { $loaded[$cachekey] = $data; return $data; } $r = $this-&gt;db2-&gt;query(&#x27;SELECT id, name FROM applications WHERE id=&quot;&#x27;.$id.&#x27;&quot; LIMIT 1&#x27;, FALSE); if( $data = $this-&gt;db2-&gt;fetch_object($r) ) { $data-&gt;name = stripslashes($data-&gt;name); $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); $loaded[$cachekey] = $data; return $data; } return FALSE; } public function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action=&#x27;ignore&#x27;) { // $if_exists_action: &#x27;ignore&#x27; or &#x27;replace&#x27; or &#x27;quit&#x27; - please use &#x27;ignore&#x27;, otherwise it could cause heavy performance leaks global $C; $to_user_id = intval($to_user_id); $in_group_id = intval($in_group_id); if( $C-&gt;API_ID == 1 ) { if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;SITE_URL, $m) ) { $siteurl = $m[1].$m[3]; foreach($lang_params as &amp;$p) { $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); } } elseif( preg_match(&#x27;/\/m(\/|$)/iu&#x27;, $C-&gt;SITE_URL, $m) ) { $siteurl = preg_replace(&#x27;/\/m(\/|$)/&#x27;, &#x27;&#x27;, $C-&gt;SITE_URL); $siteurl = rtrim($siteurl,&#x27;/&#x27;).&#x27;/&#x27;; foreach($lang_params as &amp;$p) { $p = str_replace($C-&gt;SITE_URL, $siteurl, $p); } } } $data = (object) array ( &#x27;type&#x27; =&gt; &#x27;notif&#x27;, &#x27;to_user_id&#x27; =&gt; $to_user_id, &#x27;in_group_id&#x27; =&gt; $in_group_id, &#x27;lang_key&#x27; =&gt; $lang_key, &#x27;lang_params&#x27; =&gt; $lang_params, &#x27;from_user_id&#x27; =&gt; $GLOBALS[&#x27;user&#x27;]-&gt;id, ); $data = $this-&gt;db2-&gt;e(serialize($data)); if( $to_user_id &gt; 0 ) { if( $if_exists_action != &#x27;ignore&#x27; ) { $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;0&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($obj = $this-&gt;db2-&gt;fetch_object($r)) { if( $if_exists_action == &#x27;quit&#x27; ) { return; } if( $if_exists_action == &#x27;replace&#x27; ) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); $this-&gt;db2-&gt;query(&#x27;DELETE FROM post_userbox WHERE post_id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; &#x27;, FALSE); } } } $this-&gt;db2-&gt;query(&#x27;INSERT INTO posts SET user_id=&quot;0&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO post_userbox SET user_id=&quot;&#x27;.$to_user_id.&#x27;&quot;, post_id=&quot;&#x27;.intval($this-&gt;db2-&gt;insert_id()).&#x27;&quot; &#x27;); $this-&gt;set_dashboard_tabstate($to_user_id, &#x27;system&#x27;, 1); } elseif( $in_group_id &gt; 0 ) { if( $if_exists_action != &#x27;ignore&#x27; ) { $r = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts WHERE user_id=&quot;0&quot; AND group_id=&quot;&#x27;.$in_group_id.&#x27;&quot; AND message=&quot;&#x27;.$data.&#x27;&quot; LIMIT 1&#x27;, FALSE); if($obj = $this-&gt;db2-&gt;fetch_object($r)) { if( $if_exists_action == &#x27;quit&#x27; ) { return; } if( $if_exists_action == &#x27;replace&#x27; ) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM posts WHERE id=&quot;&#x27;.$obj-&gt;id.&#x27;&quot; LIMIT 1&#x27;, FALSE); } } } $this-&gt;db2-&gt;query(&#x27;INSERT DELAYED INTO posts SET group_id=&quot;&#x27;.$in_group_id.&#x27;&quot;, message=&quot;&#x27;.$data.&#x27;&quot;, date=&quot;&#x27;.time().&#x27;&quot;, ip_addr=&quot;&#x27;.ip2long($_SERVER[&#x27;REMOTE_ADDR&#x27;]).&#x27;&quot; &#x27;, FALSE); } } public function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE) { global $C, $D, $page; if( $inD ) { foreach($inD as $k=&gt;$v) { $D-&gt;$k = $v; } } $to_user = $this-&gt;get_user_by_id($to_user_id); if( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) { return; } $D-&gt;page = &amp; $page; $D-&gt;user = $to_user; $D-&gt;subject = $subject; $D-&gt;message_txt = $message_txt; $D-&gt;message_html = $message_html; $msgtxt = $page-&gt;load_template(&#x27;email/notifications_txt.php&#x27;, FALSE); $msghtml = $page-&gt;load_template(&#x27;email/notifications_html.php&#x27;, FALSE); if( empty($msgtxt) || empty($msghtml) ) { return; } if( $C-&gt;SITE_URL != $C-&gt;DEF_SITE_URL ) { $msgtxt = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msgtxt); $msghtml = str_replace($C-&gt;SITE_URL, $C-&gt;DEF_SITE_URL, $msghtml); } if( preg_match(&#x27;/^(http(s)?\:\/\/)m\.(.*)$/iu&#x27;, $C-&gt;DEF_SITE_URL, $m) ) { $siteurl = $m[1].$m[3]; $msgtxt = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msgtxt); $msghtml = str_replace($C-&gt;DEF_SITE_URL, $siteurl, $msghtml); } do_send_mail_html($to_user-&gt;email, $subject, $msgtxt, $msghtml); } public function get_dashboard_tabstate($user_id, $tabs) { $user_id = intval($user_id); if( is_array($tabs) ) { $result = array(); $tmp = array(); foreach($tabs as $tab) { $result[$tab] = 0; $tmp[] = &#x27;&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;&#x27;; } $tmp = implode(&#x27;, &#x27;, $tmp); $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab IN(&#x27;.$tmp.&#x27;) LIMIT &#x27;.count($tabs), FALSE); while( $obj = $this-&gt;db2-&gt;fetch_object($r) ) { $result[$obj-&gt;tab] = $obj-&gt;state==0 ? 0 : intval($obj-&gt;newposts); if( $result[$obj-&gt;tab] &gt; 99 ) { $result[$obj-&gt;tab] = &#x27;99+&#x27;; } } return $result; } else { $r = $this-&gt;db2-&gt;query(&#x27;SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tabs).&#x27;&quot; LIMIT 1&#x27;, FALSE); if( ! $obj = $this-&gt;db2-&gt;fetch_object($r) ) { return 0; } $result = $obj-&gt;state==0 ? 0 : intval($obj-&gt;newposts); if( $result &gt; 99 ) { $result = &#x27;99+&#x27;; } return $result; } } public function set_dashboard_tabstate($user_id, $tab, $withnum=0) { $user_id = intval($user_id); $withnum = intval($withnum); $currnum = $this-&gt;get_dashboard_tabstate($user_id, $tab); if( $currnum==0 &amp;&amp; $withnum&lt;=0 ) { return TRUE; } if( $currnum==0 &amp;&amp; $withnum&gt;0 ) { $this-&gt;db2-&gt;query(&#x27;REPLACE INTO users_dashboard_tabs SET user_id=&quot;&#x27;.$user_id.&#x27;&quot;, tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;, state=&quot;1&quot;, newposts=&quot;&#x27;.$withnum.&#x27;&quot; &#x27;, FALSE); return TRUE; } if( $currnum&gt;0 &amp;&amp; $withnum==0 ) { $this-&gt;reset_dashboard_tabstate($user_id, $tab); return TRUE; } if( $currnum&gt;0 &amp;&amp; $withnum&gt;0 ) { $withnum += $currnum; $this-&gt;db2-&gt;query(&#x27;REPLACE INTO users_dashboard_tabs SET user_id=&quot;&#x27;.$user_id.&#x27;&quot;, tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot;, state=&quot;1&quot;, newposts=&quot;&#x27;.$withnum.&#x27;&quot; &#x27;, FALSE); return TRUE; } } public function reset_dashboard_tabstate($user_id, $tab) { $this-&gt;db2-&gt;query(&#x27;DELETE FROM users_dashboard_tabs WHERE user_id=&quot;&#x27;.$user_id.&#x27;&quot; AND tab=&quot;&#x27;.$this-&gt;db2-&gt;e($tab).&#x27;&quot; &#x27;, FALSE); return TRUE; } public function get_mostcommenting_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostcommenting_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id&lt;&gt;0 GROUP BY user_id ORDER BY c DESC LIMIT 22&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;user_id); if( !$usr ){ continue; } $data[$obj-&gt;user_id] = array($usr-&gt;username, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostcommented_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostcommented_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id&lt;&gt;0 AND posts_comments.user_id&lt;&gt;0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 22&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;uid); if( !$usr ){ continue; } $data[$obj-&gt;uid] = array($usr-&gt;username, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowed_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostfollowed_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, username, avatar, num_followers AS c FROM users WHERE num_followers &gt; 0 ORDER BY num_followers DESC LIMIT 22&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $data[$obj-&gt;id] = array($obj-&gt;username, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowing_users($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mfollowing_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 22&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $usr = $this-&gt;get_user_by_id($obj-&gt;who); if( !$usr ){ continue; } $data[$obj-&gt;who] = array($usr-&gt;username, $usr-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostfollowed_groups($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostfollowed_groupz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, groupname, avatar, num_followers AS c FROM groups WHERE num_followers&gt;0 ORDER BY num_followers DESC LIMIT 10&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_GROUP; } $data[$obj-&gt;id] = array($obj-&gt;groupname, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostactive_groups($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,mostactive_groupz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id&lt;&gt;0 AND group_id&lt;&gt;0 AND api_id&lt;&gt;2 AND api_id&lt;&gt;6 GROUP BY group_id ORDER BY c DESC LIMIT 10&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { $g = $this-&gt;get_group_by_id($obj-&gt;group_id); if( !$g ){ continue; } $data[$obj-&gt;group_id] = array($g-&gt;groupname, $g-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_mostactive_userss($force_refresh=FALSE) { if( ! $this-&gt;id ) { return FALSE; } $cachekey = &#x27;n:&#x27;.$this-&gt;id.&#x27;,post_userz&#x27;; $data = $this-&gt;cache-&gt;get($cachekey); if( FALSE!==$data &amp;&amp; TRUE!=$force_refresh ) { return $data; } $data = array(); $this-&gt;db2-&gt;query(&#x27;SELECT id, username, avatar, num_posts AS c FROM users WHERE num_posts &gt; 0 ORDER BY num_posts DESC LIMIT 22&#x27;); while($obj = $this-&gt;db2-&gt;fetch_object()) { if( empty($obj-&gt;avatar) ){ $obj-&gt;avatar = $GLOBALS[&#x27;C&#x27;]-&gt;DEF_AVATAR_USER; } $data[$obj-&gt;id] = array($obj-&gt;username, $obj-&gt;avatar, $obj-&gt;c); } $this-&gt;cache-&gt;set($cachekey, $data, $GLOBALS[&#x27;C&#x27;]-&gt;CACHE_EXPIRE); return $data; } public function get_user_num_comments($fid) { $nums_q = $this-&gt;db2-&gt;query(&#x27;SELECT id FROM posts_comments WHERE user_id=&quot;&#x27;.$fid.&#x27;&quot;&#x27; , FALSE); $num_com = $this-&gt;db2-&gt;num_rows($nums_q); return $num_com; } } ?&gt;</textarea></div></div></div><div class="hide-print ad-box_container__q9Jhx undefined"></div><button class="button_button__bjA22 button_primary__rOLXs button_green__M6qy2 button_large__kvbXf button_basic__UWiCh button_loading__E19Mz" type="submit" disabled=""><span class="button_textContent__h9hLW">Trouver la différence</span><div class="button_loadingIcon__bGBAF"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" class="icon_small__n3B1T" viewBox="0 0 16 16" preserveAspectRatio="none"><path fill="currentColor" fill-rule="evenodd" d="M2 8a1 1 0 1 0 2 0 1 1 0 0 0-2 0m6 1a1 1 0 1 1 0-2 1 1 0 0 1 0 2m5 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2" clip-rule="evenodd"></path><path fill="currentColor" d="M3 9v.5zm1-1h.5zm4 1v.5zm5 0v.5zM3 8.5a.5.5 0 0 1-.5-.5h-1A1.5 1.5 0 0 0 3 9.5zm.5-.5a.5.5 0 0 1-.5.5v1A1.5 1.5 0 0 0 4.5 8zM3 7.5a.5.5 0 0 1 .5.5h1A1.5 1.5 0 0 0 3 6.5zm-.5.5a.5.5 0 0 1 .5-.5v-1A1.5 1.5 0 0 0 1.5 8zm4 0A1.5 1.5 0 0 0 8 9.5v-1a.5.5 0 0 1-.5-.5zM8 6.5A1.5 1.5 0 0 0 6.5 8h1a.5.5 0 0 1 .5-.5zM9.5 8A1.5 1.5 0 0 0 8 6.5v1a.5.5 0 0 1 .5.5zM8 9.5A1.5 1.5 0 0 0 9.5 8h-1a.5.5 0 0 1-.5.5zM11.5 8A1.5 1.5 0 0 0 13 9.5v-1a.5.5 0 0 1-.5-.5zM13 6.5A1.5 1.5 0 0 0 11.5 8h1a.5.5 0 0 1 .5-.5zM14.5 8A1.5 1.5 0 0 0 13 6.5v1a.5.5 0 0 1 .5.5zM13 9.5A1.5 1.5 0 0 0 14.5 8h-1a.5.5 0 0 1-.5.5z"></path></svg></div></button><div class="hide-print ad-box_container__q9Jhx undefined ad-box_belowSubmit__WBedr"></div></form></div></div></div></div></div></div></div></div><footer class="hide-print footer_footer__eC0i7"><div class="footer_content__QkTOH"><ul class="footer_links__LH0x5"><li class="footer_copyright__6H1M0">© 2024 Checker Software Inc.</li><li><a href="/fr/contact/">Contact</a></li><li><a href="/fr/cli/">CLI</a></li><li><a href="/fr/terms/">Terms</a></li><li><a href="/fr/privacy-policy/">Privacy Policy</a></li><li><a href="/fr/public-api/">API</a></li><li><a href="https://www.comparetext.net/" target="_blank" rel="noreferrer">Compare Text</a></li></ul><ul><li><a href="/qxrjy8a4/">English</a></li><li><a href="/fr/qxrjy8a4/">Français</a></li><li><a href="/es/qxrjy8a4/">Español</a></li><li><a href="/pt/qxrjy8a4/">Português</a></li><li><a href="/it/qxrjy8a4/">Italiano</a></li><li><a href="/de/qxrjy8a4/">Deutsch</a></li><li><a href="/hi/qxrjy8a4/">हिन्दी</a></li><li><a href="/zh-Hans/qxrjy8a4/">简体</a></li><li><a href="/zh-Hant/qxrjy8a4/">繁體</a></li><li><a href="/jp/qxrjy8a4/">日本語</a></li></ul></div></footer></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"initialProps":{},"initialState":{"abTest":{"experiments":{},"isHydrated":false},"app":{"allowUsageDataCollection":true,"diffVersion":"regular","diffCompression":"expanded","features":{"allowExplain":true,"newAccountPage":true,"recordDocumentDiff":false,"saveFilesDocumentDiff":true},"isHydrated":false},"diff":{"sidebarTab":"settings","expiry":"no","diffIndex":0,"diffs":[{"id":10573,"ip":null,"slug":"qxrjy8a4","title":null,"left":"\u003c?php\r\n\t\r\n\tclass network\r\n\t{\r\n\t\tpublic $id;\r\n\t\tpublic $info;\r\n\t\tpublic $is_private;\r\n\t\tpublic $is_public;\r\n\t\t\r\n\t\tpublic function __construct()\r\n\t\t{\r\n\t\t\t$this-\u003eid\t= FALSE;\r\n\t\t\t$this-\u003eC\t= new stdClass;\r\n\t\t\t$this-\u003einfo\t= new stdClass;\r\n\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r\n\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r\n\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r\n\t\t}\r\n\t\t\r\n\t\tpublic function LOAD()\r\n\t\t{\r\n\t\t\tif( $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$this-\u003eload_network_settings();\r\n\t\t\t$this-\u003einfo\t= (object) array(\r\n\t\t\t\t'id'\t=\u003e 1,\r\n\t\t\t);\r\n\t\t\t$this-\u003eis_private\t= FALSE;\r\n\t\t\t$this-\u003eis_public\t= TRUE;\r\n\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r\n\t\t\treturn $this-\u003eid;\r\n\t\t}\r\npublic function get_latest_dogum($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_dogum_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 40;\r\n\t\t\t$tarih = pdate(\"m-d\", time());\r\n\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function load_network_settings()\r\n\t\t{\r\n\t\t\t$db\t= \u0026$this-\u003edb1;\r\n\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r\n\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r\n\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r\n\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r\n\t\t\t}\r\n\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r\n\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r\n\t\t\t\r\n\t\t\t$current_language\t= new stdClass;\r\n\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r\n\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r\n\t\t\t\r\n\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r\n\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r\n\t\t\t}\r\n\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r\n\t\t\t\r\n\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r\n\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r\n\t\t\t}\r\n\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($uname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! is_valid_email($email) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND sus_time\u003c\"'.time().'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r\n\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r\n\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\tif($o-\u003egender=='m'){\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_MUSER;\r\n}elseif($o-\u003egender=='f'){\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_FUSER;\r\n}else{\t\t\t\t\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\t\r\n}\t\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eage\t= '';\r\n\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r\n\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r\n\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r\n\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r\n\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r\n\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r\n\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r\n\t\t\t\t\t\t\t$o-\u003eage\t--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r\n\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r\n\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r\n\t\t\t\t$o-\u003euser_details\t= FALSE;\r\n\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r\n\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r\n\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r\n\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\r\n//////////////////////// User Like ///////////////////////////\r\n\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003elikers\t\t= array();\r\n\t\t\t$data-\u003elike_users\t= array();\r\n\r\n\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n///////////////////////// User Like /////////////////////////////\r\n\r\n\r\n\r\n\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003efollowers\t\t= array();\r\n\t\t\t$data-\u003efollow_users\t= array();\r\n\t\t\t$data-\u003efollow_groups\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_mostactive_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$days\t= 5;\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n\t\t\r\n\t\tpublic function get_latest_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 OR sus_time\u003c\"'.time().'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\tpublic function get_online_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 30;\r\n\t\t\t$time\t= 15*60;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT '.($num+1));\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( $obj-\u003elastclick_date \u003c time() - $time ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t$data[]\t= $this-\u003eget_user_by_id($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$data\t= array_slice($data, 0, $num);\r\n\t\t\t$this-\u003ecache-\u003eset( $cachekey, $data, 10*60 );\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($gname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r\n\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$gid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$gid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\t\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\tif($g-\u003eis_public == 0) {\r\n\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE (active=1 OR sus_time\u003c\"'.time().'\") AND is_network_admin=1', FALSE);\r\n\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r\n\t\t\t\t}\r\n\t\t\t\t$u_in\t= array_unique($u_in);\r\n\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_last_post_id()\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn array_slice($data, 0, $count);\r\n\t\t\t}\r\n\t\t\t// this is to avoid running the query below multiple times at once \r\n\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r\n\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r\n\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r\n\t\t\t// \r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r\n\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( ! preg_match_all('/\\#([א-תÀ-ÿ一-龥а-яa-z0-9\\-_]{1,50})/iu', stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array();\r\n\t\t\t\tforeach($matches[1] as $tg) {\r\n\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r\n\t\t\t\t$weight\t= 1;\r\n\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r\n\t\t\t\t\t$weight\t= 100;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r\n\t\t\t\t\t$weigth\t= 20;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r\n\t\t\t\t\t$weight\t= 5;\r\n\t\t\t\t}\r\n\t\t\t\tforeach($thisposttags as $tg) {\r\n\t\t\t\t\tif( ! isset($data[$tg]) ) {\r\n\t\t\t\t\t\t$data[$tg]\t= 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$data[$tg]\t+= $weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tarsort($data);\r\n\t\t\t$data\t= array_keys($data);\r\n\t\t\t$data\t= array_slice($data, 0, 50);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r\n\t\t\treturn array_slice($data, 0, $count);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r\n\t\t\t\tset_user_default_notification_rules($user_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tunset($obj-\u003euser_id);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $obj;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$id\t= intval($id);\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r\n\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r\n\t\t{\r\n\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r\n\t\t\t$if_exists_action='ignore';\r\n\t\t\tglobal $C;\r\n\t\t\t$to_user_id\t\t= intval($to_user_id);\r\n\t\t\t$in_group_id\t= intval($in_group_id);\r\n\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r\n\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r\n\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$data\t= (object) array (\r\n\t\t\t\t'type'\t\t=\u003e 'notif',\r\n\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r\n\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r\n\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r\n\t\t\t\t'lang_params'\t=\u003e $lang_params,\r\n\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r\n\t\t\t);\r\n\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r\n\t\t\tif( $to_user_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t//\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r\n\t\t\t}\r\n\t\t\telseif( $in_group_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r\n\t\t{\r\n\t\t\tglobal $C, $D, $page;\r\n\t\t\tif( $inD ) {\r\n\t\t\t\tforeach($inD as $k=\u003e$v) {\r\n\t\t\t\t\t$D-\u003e$k\t= $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r\n\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$D-\u003epage\t= \u0026 $page;\r\n\t\t\t$D-\u003euser\t= $to_user;\r\n\t\t\t$D-\u003esubject\t\t= $subject;\r\n\t\t\t$D-\u003emessage_txt\t= $message_txt;\r\n\t\t\t$D-\u003emessage_html\t= $message_html;\r\n\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r\n\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r\n\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r\n\t\t\t}\r\n\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r\n\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r\n\t\t\t}\r\n\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\tif( is_array($tabs) ) {\r\n\t\t\t\t$result\t= array();\r\n\t\t\t\t$tmp\t= array();\r\n\t\t\t\tforeach($tabs as $tab) {\r\n\t\t\t\t\t$result[$tab]\t= 0;\r\n\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r\n\t\t\t\t}\r\n\t\t\t\t$tmp\t= implode(', ', $tmp);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs), FALSE);\r\n\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r\n\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\t$result\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\tif( $result \u003e 99 ) {\r\n\t\t\t\t\t$result\t= '99+';\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function set_dashboard_tabstate($user_id, $tab, $withnum=0)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\t$withnum\t= intval($withnum);\r\n\t\t\t$currnum\t= $this-\u003eget_dashboard_tabstate($user_id, $tab);\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003c=0 ) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum==0 ) {\r\n\t\t\t\t$this-\u003ereset_dashboard_tabstate($user_id, $tab);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$withnum\t+= $currnum;\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function reset_dashboard_tabstate($user_id, $tab)\r\n\t\t{\r\n\t\t\t$this-\u003edb2-\u003equery('DELETE FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tab).'\" ', FALSE);\r\n\t\t\treturn TRUE;\r\n\t\t}\r\npublic function get_user_num_comments($fid)\r\n\r\n{\r\n $nums_q = $this-\u003edb2-\u003equery('SELECT id FROM posts_comments WHERE user_id=\"'.$fid.'\"' , FALSE);\r\n $num_com = $this-\u003edb2-\u003enum_rows($nums_q);\r\n\r\nreturn $num_com;\r\n\r\n} \r\npublic function if_i_ignore($mid,$uid)\r\n\t\t{\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users_ignores WHERE ignor_id=\"'.$mid.'\" AND user_id=\"'.$uid.'\" ');\r\n\t\t\t\tif($this-\u003edb2-\u003enum_rows($r) \u003e 0) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t\t}\r\n return FALSE;\r\n\t\t}\t\r\npublic function get_mostactive_userss($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, fullname, avatar, num_posts AS c FROM users WHERE num_posts \u003e 0 ORDER BY num_posts DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003efullname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommenting_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommenting_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euser_id);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euser_id]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommented_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommented_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id\u003c\u003e0 AND posts_comments.user_id\u003c\u003e0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euid);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euid]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, fullname, avatar, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003efullname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\t\tpublic function get_mostfollowing_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mfollowing_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003ewho);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003ewho]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\tpublic function get_mostfollowed_groups($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, groupname, title, avatar, num_followers AS c FROM groups WHERE num_followers\u003e0 ORDER BY num_followers DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003egroupname, $obj-\u003etitle, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\npublic function get_followers_users($force_refresh=FALSE) {\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',followers_users';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_posts, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 6');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\tpublic function get_mostactive_groups($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id\u003c\u003e0 AND group_id\u003c\u003e0 AND api_id\u003c\u003e2 AND api_id\u003c\u003e6 GROUP BY group_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$g = $this-\u003eget_group_by_id($obj-\u003egroup_id);\r\n\t\t\t\tif( !$g ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003egroup_id]\t= array($g-\u003egroupname, $g-\u003etitle, $g-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n\r\n\t}\r\n\t\r\n?\u003e\r\n\r\n\r\n","right":"\u003c?php\r\n\t\r\n\tclass network\r\n\t{\r\n\t\tpublic $id;\r\n\t\tpublic $info;\r\n\t\tpublic $is_private;\r\n\t\tpublic $is_public;\r\n\t\t\r\n\t\tpublic function __construct()\r\n\t\t{\r\n\t\t\t$this-\u003eid\t= FALSE;\r\n\t\t\t$this-\u003eC\t= new stdClass;\r\n\t\t\t$this-\u003einfo\t= new stdClass;\r\n\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r\n\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r\n\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r\n\t\t}\r\n\t\t\r\n\t\tpublic function LOAD()\r\n\t\t{\r\n\t\t\tif( $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$this-\u003eload_network_settings();\r\n\t\t\t$this-\u003einfo\t= (object) array(\r\n\t\t\t\t'id'\t=\u003e 1,\r\n\t\t\t);\r\n\t\t\t$this-\u003eis_private\t= FALSE;\r\n\t\t\t$this-\u003eis_public\t= TRUE;\r\n\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r\n\t\t\treturn $this-\u003eid;\r\n\t\t}\r\npublic function get_latest_dogum($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$tarih = pdate(\"m-d\", time());\r\n\t\t\t\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\t\r\n\t\tpublic function load_network_settings()\r\n\t\t{\r\n\t\t\t$db\t= \u0026$this-\u003edb1;\r\n\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r\n\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r\n\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r\n\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r\n\t\t\t}\r\n\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r\n\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r\n\t\t\t\r\n\t\t\t$current_language\t= new stdClass;\r\n\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r\n\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r\n\t\t\t\r\n\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r\n\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r\n\t\t\t}\r\n\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r\n\t\t\t\r\n\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r\n\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r\n\t\t\t}\r\n\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($uname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" AND active=1 LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! is_valid_email($email) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND active=1 LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r\n\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r\n\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eage\t= '';\r\n\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r\n\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r\n\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r\n\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r\n\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r\n\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r\n\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r\n\t\t\t\t\t\t\t$o-\u003eage\t--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r\n\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r\n\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r\n\t\t\t\t$o-\u003euser_details\t= FALSE;\r\n\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r\n\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r\n\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r\n\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t//////////////////////// User Like ///////////////////////////\r\n\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003elikers\t\t= array();\r\n\t\t\t$data-\u003elike_users\t= array();\r\n\r\n\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n///////////////////////// User Like /////////////////////////////\r\n\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003efollowers\t\t= array();\r\n\t\t\t$data-\u003efollow_users\t= array();\r\n\t\t\t$data-\u003efollow_groups\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\tpublic function get_mostactive_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$days\t= 5;\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_latest_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r\n\t\t\t$data\t= $cache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_online_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r\n\t\t\t$data\t= $cache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( $obj-\u003elastclick_date \u003c time()-30*60 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($gname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r\n\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$gid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$gid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\t\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\tif($g-\u003eis_public == 0) {\r\n\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 AND is_network_admin=1', FALSE);\r\n\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r\n\t\t\t\t}\r\n\t\t\t\t$u_in\t= array_unique($u_in);\r\n\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_last_post_id()\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn array_slice($data, 0, $count);\r\n\t\t\t}\r\n\t\t\t// this is to avoid running the query below multiple times at once \r\n\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r\n\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r\n\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r\n\t\t\t// \r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r\n\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( ! preg_match_all('/\\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\\-_]{1,50})/iu', stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array();\r\n\t\t\t\tforeach($matches[1] as $tg) {\r\n\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r\n\t\t\t\t$weight\t= 1;\r\n\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r\n\t\t\t\t\t$weight\t= 100;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r\n\t\t\t\t\t$weigth\t= 20;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r\n\t\t\t\t\t$weight\t= 5;\r\n\t\t\t\t}\r\n\t\t\t\tforeach($thisposttags as $tg) {\r\n\t\t\t\t\tif( ! isset($data[$tg]) ) {\r\n\t\t\t\t\t\t$data[$tg]\t= 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$data[$tg]\t+= $weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tarsort($data);\r\n\t\t\t$data\t= array_keys($data);\r\n\t\t\t$data\t= array_slice($data, 0, 50);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r\n\t\t\treturn array_slice($data, 0, $count);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r\n\t\t\t\tset_user_default_notification_rules($user_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tunset($obj-\u003euser_id);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $obj;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$id\t= intval($id);\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r\n\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r\n\t\t{\r\n\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\t$to_user_id\t\t= intval($to_user_id);\r\n\t\t\t$in_group_id\t= intval($in_group_id);\r\n\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r\n\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r\n\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$data\t= (object) array (\r\n\t\t\t\t'type'\t\t=\u003e 'notif',\r\n\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r\n\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r\n\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r\n\t\t\t\t'lang_params'\t=\u003e $lang_params,\r\n\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r\n\t\t\t);\r\n\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r\n\t\t\tif( $to_user_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r\n\t\t\t\t$this-\u003eset_dashboard_tabstate($to_user_id, 'system', 1);\r\n\t\t\t}\r\n\t\t\telseif( $in_group_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r\n\t\t{\r\n\t\t\tglobal $C, $D, $page;\r\n\t\t\tif( $inD ) {\r\n\t\t\t\tforeach($inD as $k=\u003e$v) {\r\n\t\t\t\t\t$D-\u003e$k\t= $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r\n\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$D-\u003epage\t= \u0026 $page;\r\n\t\t\t$D-\u003euser\t= $to_user;\r\n\t\t\t$D-\u003esubject\t\t= $subject;\r\n\t\t\t$D-\u003emessage_txt\t= $message_txt;\r\n\t\t\t$D-\u003emessage_html\t= $message_html;\r\n\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r\n\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r\n\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r\n\t\t\t}\r\n\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r\n\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r\n\t\t\t}\r\n\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\tif( is_array($tabs) ) {\r\n\t\t\t\t$result\t= array();\r\n\t\t\t\t$tmp\t= array();\r\n\t\t\t\tforeach($tabs as $tab) {\r\n\t\t\t\t\t$result[$tab]\t= 0;\r\n\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r\n\t\t\t\t}\r\n\t\t\t\t$tmp\t= implode(', ', $tmp);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs), FALSE);\r\n\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r\n\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\t$result\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\tif( $result \u003e 99 ) {\r\n\t\t\t\t\t$result\t= '99+';\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function set_dashboard_tabstate($user_id, $tab, $withnum=0)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\t$withnum\t= intval($withnum);\r\n\t\t\t$currnum\t= $this-\u003eget_dashboard_tabstate($user_id, $tab);\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003c=0 ) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum==0 ) {\r\n\t\t\t\t$this-\u003ereset_dashboard_tabstate($user_id, $tab);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$withnum\t+= $currnum;\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function reset_dashboard_tabstate($user_id, $tab)\r\n\t\t{\r\n\t\t\t$this-\u003edb2-\u003equery('DELETE FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tab).'\" ', FALSE);\r\n\t\t\treturn TRUE;\r\n\t\t}\r\npublic function get_mostcommenting_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommenting_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euser_id);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euser_id]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommented_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommented_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id\u003c\u003e0 AND posts_comments.user_id\u003c\u003e0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euid);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euid]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowing_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mfollowing_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003ewho);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003ewho]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_groups($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, groupname, avatar, num_followers AS c FROM groups WHERE num_followers\u003e0 ORDER BY num_followers DESC LIMIT 10');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003egroupname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostactive_groups($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id\u003c\u003e0 AND group_id\u003c\u003e0 AND api_id\u003c\u003e2 AND api_id\u003c\u003e6 GROUP BY group_id ORDER BY c DESC LIMIT 10');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$g = $this-\u003eget_group_by_id($obj-\u003egroup_id);\r\n\t\t\t\tif( !$g ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003egroup_id]\t= array($g-\u003egroupname, $g-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\npublic function get_mostactive_userss($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_posts AS c FROM users WHERE num_posts \u003e 0 ORDER BY num_posts DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\npublic function get_user_num_comments($fid)\r\n\r\n{\r\n $nums_q = $this-\u003edb2-\u003equery('SELECT id FROM posts_comments WHERE user_id=\"'.$fid.'\"' , FALSE);\r\n $num_com = $this-\u003edb2-\u003enum_rows($nums_q);\r\n\r\nreturn $num_com;\r\n\r\n}\r\n\t}\r\n\t\r\n?\u003e","expires":null,"isPrivate":false,"collaborators":[],"createdAt":"2015-04-18T21:43:45.666Z","updatedAt":"2024-11-27T11:28:00.860Z","permission":"view","user":null,"localTime":1732706880900,"rows":[{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\u003c?php\r","type":"equal"}],"line":1},"right":{"chunks":[{"value":"\u003c?php\r","type":"equal"}],"line":1}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\r","type":"equal"}],"line":2},"right":{"chunks":[{"value":"\t\r","type":"equal"}],"line":2}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\tclass network\r","type":"equal"}],"line":3},"right":{"chunks":[{"value":"\tclass network\r","type":"equal"}],"line":3}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t{\r","type":"equal"}],"line":4},"right":{"chunks":[{"value":"\t{\r","type":"equal"}],"line":4}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $id;\r","type":"equal"}],"line":5},"right":{"chunks":[{"value":"\t\tpublic $id;\r","type":"equal"}],"line":5}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $info;\r","type":"equal"}],"line":6},"right":{"chunks":[{"value":"\t\tpublic $info;\r","type":"equal"}],"line":6}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $is_private;\r","type":"equal"}],"line":7},"right":{"chunks":[{"value":"\t\tpublic $is_private;\r","type":"equal"}],"line":7}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $is_public;\r","type":"equal"}],"line":8},"right":{"chunks":[{"value":"\t\tpublic $is_public;\r","type":"equal"}],"line":8}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":9},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":9}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function __construct()\r","type":"equal"}],"line":10},"right":{"chunks":[{"value":"\t\tpublic function __construct()\r","type":"equal"}],"line":10}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":11},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":11}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= FALSE;\r","type":"equal"}],"line":12},"right":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= FALSE;\r","type":"equal"}],"line":12}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eC\t= new stdClass;\r","type":"equal"}],"line":13},"right":{"chunks":[{"value":"\t\t\t$this-\u003eC\t= new stdClass;\r","type":"equal"}],"line":13}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= new stdClass;\r","type":"equal"}],"line":14},"right":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= new stdClass;\r","type":"equal"}],"line":14}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r","type":"equal"}],"line":15},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r","type":"equal"}],"line":15}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r","type":"equal"}],"line":16},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r","type":"equal"}],"line":16}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r","type":"equal"}],"line":17},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r","type":"equal"}],"line":17}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":18},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":18}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":19},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":19}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function LOAD()\r","type":"equal"}],"line":20},"right":{"chunks":[{"value":"\t\tpublic function LOAD()\r","type":"equal"}],"line":20}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":21},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":21}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $this-\u003eid ) {\r","type":"equal"}],"line":22},"right":{"chunks":[{"value":"\t\t\tif( $this-\u003eid ) {\r","type":"equal"}],"line":22}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":23},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":23}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":24},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":24}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eload_network_settings();\r","type":"equal"}],"line":25},"right":{"chunks":[{"value":"\t\t\t$this-\u003eload_network_settings();\r","type":"equal"}],"line":25}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= (object) array(\r","type":"equal"}],"line":26},"right":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= (object) array(\r","type":"equal"}],"line":26}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'id'\t=\u003e 1,\r","type":"equal"}],"line":27},"right":{"chunks":[{"value":"\t\t\t\t'id'\t=\u003e 1,\r","type":"equal"}],"line":27}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":28},"right":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":28}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eis_private\t= FALSE;\r","type":"equal"}],"line":29},"right":{"chunks":[{"value":"\t\t\t$this-\u003eis_private\t= FALSE;\r","type":"equal"}],"line":29}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eis_public\t= TRUE;\r","type":"equal"}],"line":30},"right":{"chunks":[{"value":"\t\t\t$this-\u003eis_public\t= TRUE;\r","type":"equal"}],"line":30}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r","type":"equal"}],"line":31},"right":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r","type":"equal"}],"line":31}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $this-\u003eid;\r","type":"equal"}],"line":32},"right":{"chunks":[{"value":"\t\t\treturn $this-\u003eid;\r","type":"equal"}],"line":32}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":33},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":33}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"public function get_latest_dogum($force_refresh=FALSE)\r","type":"equal"}],"line":34},"right":{"chunks":[{"value":"public function get_latest_dogum($force_refresh=FALSE)\r","type":"equal"}],"line":34}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":35},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":35}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":36},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":36}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":37},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":37}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":38},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":38}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":39},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":39}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_dogum_userz';\r","type":"remove"}],"line":40},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":41},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"remove"}],"line":42},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"remove"}],"line":43},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"remove"}],"line":44},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":45},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":40}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"40;\r","type":"remove"}],"line":46},"right":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"20;\r","type":"insert"}],"line":41}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$tarih = pdate(\"m-d\", time());\r","type":"equal"}],"line":47},"right":{"chunks":[{"value":"\t\t\t$tarih = pdate(\"m-d\", time());\r","type":"equal"}],"line":42}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":48},"right":{"chunks":[{"value":"\t\t\t\r","type":"insert"}],"line":43}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":49},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":44}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":50},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":45}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":51},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":46}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":52},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":47}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"remove"}],"line":53},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":54},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":48}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":55},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":49}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[]},"right":{"chunks":[{"value":"\r","type":"insert"}],"line":50}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":56},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":51}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function load_network_settings()\r","type":"equal"}],"line":57},"right":{"chunks":[{"value":"\t\tpublic function load_network_settings()\r","type":"equal"}],"line":52}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":58},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":53}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$db\t= \u0026$this-\u003edb1;\r","type":"equal"}],"line":59},"right":{"chunks":[{"value":"\t\t\t$db\t= \u0026$this-\u003edb1;\r","type":"equal"}],"line":54}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r","type":"equal"}],"line":60},"right":{"chunks":[{"value":"\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r","type":"equal"}],"line":55}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r","type":"equal"}],"line":61},"right":{"chunks":[{"value":"\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r","type":"equal"}],"line":56}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r","type":"equal"}],"line":62},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r","type":"equal"}],"line":57}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":63},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":58}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":64},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":59}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":65},"right":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":60}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r","type":"equal"}],"line":66},"right":{"chunks":[{"value":"\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r","type":"equal"}],"line":61}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r","type":"equal"}],"line":67},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r","type":"equal"}],"line":62}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":68},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":63}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r","type":"equal"}],"line":69},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r","type":"equal"}],"line":64}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r","type":"equal"}],"line":70},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r","type":"equal"}],"line":65}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r","type":"equal"}],"line":71},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r","type":"equal"}],"line":66}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r","type":"equal"}],"line":72},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r","type":"equal"}],"line":67}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r","type":"equal"}],"line":73},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r","type":"equal"}],"line":68}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r","type":"equal"}],"line":74},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r","type":"equal"}],"line":69}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r","type":"equal"}],"line":75},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r","type":"equal"}],"line":70}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r","type":"equal"}],"line":76},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r","type":"equal"}],"line":71}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r","type":"equal"}],"line":77},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r","type":"equal"}],"line":72}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r","type":"equal"}],"line":78},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r","type":"equal"}],"line":73}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":79},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":74}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$current_language\t= new stdClass;\r","type":"equal"}],"line":80},"right":{"chunks":[{"value":"\t\t\t$current_language\t= new stdClass;\r","type":"equal"}],"line":75}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r","type":"equal"}],"line":81},"right":{"chunks":[{"value":"\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r","type":"equal"}],"line":76}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r","type":"equal"}],"line":82},"right":{"chunks":[{"value":"\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r","type":"equal"}],"line":77}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":83},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":78}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r","type":"equal"}],"line":84},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r","type":"equal"}],"line":79}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r","type":"equal"}],"line":85},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r","type":"equal"}],"line":80}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":86},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":81}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r","type":"equal"}],"line":87},"right":{"chunks":[{"value":"\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r","type":"equal"}],"line":82}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":88},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":83}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r","type":"equal"}],"line":89},"right":{"chunks":[{"value":"\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r","type":"equal"}],"line":84}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r","type":"equal"}],"line":90},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r","type":"equal"}],"line":85}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":91},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":86}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r","type":"equal"}],"line":92},"right":{"chunks":[{"value":"\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r","type":"equal"}],"line":87}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":93},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":88}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":94},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":89}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":95},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":90}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":96},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":91}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":97},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":92}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":98},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":93}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":99},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":94}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($uname) ) {\r","type":"equal"}],"line":100},"right":{"chunks":[{"value":"\t\t\tif( empty($uname) ) {\r","type":"equal"}],"line":95}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":101},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":96}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":102},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":97}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r","type":"equal"}],"line":103},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r","type":"equal"}],"line":98}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":104},"right":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":99}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":105},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":100}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":106},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":101}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":107},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":102}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":108},"right":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":103}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" ","type":"equal"},{"value":"LIMIT 1', FALSE);\r","type":"equal"}],"line":109},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" ","type":"equal"},{"value":"AND active=1 ","type":"insert"},{"value":"LIMIT 1', FALSE);\r","type":"equal"}],"line":104}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":110},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":105}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":111},"right":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":106}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":112},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":107}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":113},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":108}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":114},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":109}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":115},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":110}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":116},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":111}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":117},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":112}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":118},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":113}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":119},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":114}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":120},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":115}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":121},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":116}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":122},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":117}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":123},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":118}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! is_valid_email($email) ) {\r","type":"equal"}],"line":124},"right":{"chunks":[{"value":"\t\t\tif( ! is_valid_email($email) ) {\r","type":"equal"}],"line":119}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":125},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":120}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":126},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":121}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r","type":"equal"}],"line":127},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r","type":"equal"}],"line":122}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":128},"right":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":123}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":129},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":124}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":130},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":125}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":131},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":126}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":132},"right":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":127}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND ","type":"equal"},{"value":" sus_time\u003c\"'.time().'\" ","type":"remove"},{"value":" LIMIT 1', FALSE);\r","type":"equal"}],"line":133},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND ","type":"equal"},{"value":"active=1","type":"insert"},{"value":" LIMIT 1', FALSE);\r","type":"equal"}],"line":128}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":134},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":129}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":135},"right":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":130}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":136},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":131}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":137},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":132}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":138},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":133}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":139},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":134}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":140},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":135}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":141},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":136}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":142},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":137}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":143},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":138}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":144},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":139}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":145},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":140}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":146},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":141}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":147},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":142}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":148},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":143}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":149},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":144}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":150},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":145}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":151},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":146}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":152},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":147}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r","type":"equal"}],"line":153},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r","type":"equal"}],"line":148}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":154},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":149}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":155},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":150}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":156},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":151}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":157},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":152}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":158},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":153}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":159},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":154}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":160},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":155}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":161},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":156}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":162},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":157}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":163},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":158}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r","type":"equal"}],"line":164},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r","type":"equal"}],"line":159}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r","type":"equal"}],"line":165},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r","type":"equal"}],"line":160}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":166},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":161}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r","type":"equal"}],"line":167},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r","type":"equal"}],"line":162}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r","type":"equal"}],"line":168},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r","type":"equal"}],"line":163}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":169},"right":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":164}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t\tif($o-\u003egender=='m'){\r","type":"remove"}],"line":170},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r","type":"insert"}],"line":165}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_MUSER;\r","type":"remove"}],"line":171},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"}elseif($o-\u003egender=='f'){\r","type":"remove"}],"line":172},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_FUSER;\r","type":"remove"}],"line":173},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"}else{\t\t\t\t\r","type":"remove"}],"line":174},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\t\r","type":"remove"}],"line":175},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"}\t\r","type":"remove"}],"line":176},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":177},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":166}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eage\t= '';\r","type":"equal"}],"line":178},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eage\t= '';\r","type":"equal"}],"line":167}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r","type":"equal"}],"line":179},"right":{"chunks":[{"value":"\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r","type":"equal"}],"line":168}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r","type":"equal"}],"line":180},"right":{"chunks":[{"value":"\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r","type":"equal"}],"line":169}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r","type":"equal"}],"line":181},"right":{"chunks":[{"value":"\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r","type":"equal"}],"line":170}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r","type":"equal"}],"line":182},"right":{"chunks":[{"value":"\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r","type":"equal"}],"line":171}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r","type":"equal"}],"line":183},"right":{"chunks":[{"value":"\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r","type":"equal"}],"line":172}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r","type":"equal"}],"line":184},"right":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r","type":"equal"}],"line":173}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r","type":"equal"}],"line":185},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r","type":"equal"}],"line":174}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$o-\u003eage\t--;\r","type":"equal"}],"line":186},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$o-\u003eage\t--;\r","type":"equal"}],"line":175}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":187},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":176}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":188},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":177}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":189},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":178}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r","type":"equal"}],"line":190},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r","type":"equal"}],"line":179}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r","type":"equal"}],"line":191},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r","type":"equal"}],"line":180}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r","type":"equal"}],"line":192},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r","type":"equal"}],"line":181}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003euser_details\t= FALSE;\r","type":"equal"}],"line":193},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003euser_details\t= FALSE;\r","type":"equal"}],"line":182}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":194},"right":{"chunks":[{"value":"\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":183}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r","type":"equal"}],"line":195},"right":{"chunks":[{"value":"\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r","type":"equal"}],"line":184}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r","type":"equal"}],"line":196},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r","type":"equal"}],"line":185}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r","type":"equal"}],"line":197},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r","type":"equal"}],"line":186}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r","type":"equal"}],"line":198},"right":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r","type":"equal"}],"line":187}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":199},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":188}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":200},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":189}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":201},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":190}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":202},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":191}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":203},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":192}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":204},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":193}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":205},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":194}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":206},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":195}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":207},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":196}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\r","type":"remove"}],"line":208},"right":{"chunks":[{"value":"\t\t////////////////////////","type":"insert"},{"value":" User Like ///////////////////////////\r","type":"equal"}],"line":197}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":209},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"////////////////////////","type":"remove"},{"value":" User Like ///////////////////////////\r","type":"equal"}],"line":210},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r","type":"equal"}],"line":211},"right":{"chunks":[{"value":"\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r","type":"equal"}],"line":198}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":212},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":199}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":213},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":200}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":214},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":201}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":215},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":202}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":216},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":203}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":217},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":204}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":218},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":205}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":219},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":206}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":220},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":207}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r","type":"equal"}],"line":221},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r","type":"equal"}],"line":208}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":222},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":209}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":223},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":210}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":224},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":211}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":225},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":212}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":226},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":213}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":227},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":214}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":228},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":215}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":229},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":216}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":230},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":217}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":231},"right":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":218}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003elikers\t\t= array();\r","type":"equal"}],"line":232},"right":{"chunks":[{"value":"\t\t\t$data-\u003elikers\t\t= array();\r","type":"equal"}],"line":219}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003elike_users\t= array();\r","type":"equal"}],"line":233},"right":{"chunks":[{"value":"\t\t\t$data-\u003elike_users\t= array();\r","type":"equal"}],"line":220}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":234},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":221}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r","type":"equal"}],"line":235},"right":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r","type":"equal"}],"line":222}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":236},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":223}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":237},"right":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":224}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":238},"right":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":225}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":239},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":226}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":240},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":227}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r","type":"equal"}],"line":241},"right":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r","type":"equal"}],"line":228}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":242},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":229}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":243},"right":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":230}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":244},"right":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":231}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":245},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":232}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":246},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":233}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":247},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":234}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":248},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":235}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":249},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":236}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":250},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":237}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":251},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":238}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":252},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":239}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":253},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"///////////////////////// User Like /////////////////////////////\r","type":"equal"}],"line":254},"right":{"chunks":[{"value":"///////////////////////// User Like /////////////////////////////\r","type":"equal"}],"line":240}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":255},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":256},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":257},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":258},"right":{"chunks":[{"value":"\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":241}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":259},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":242}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":260},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":243}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":261},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":244}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":262},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":245}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":263},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":246}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":264},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":247}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":265},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":248}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":266},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":249}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":267},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":250}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r","type":"equal"}],"line":268},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r","type":"equal"}],"line":251}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":269},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":252}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":270},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":253}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":271},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":254}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":272},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":255}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":273},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":256}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":274},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":257}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":275},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":258}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":276},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":259}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":277},"right":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":260}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollowers\t\t= array();\r","type":"equal"}],"line":278},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollowers\t\t= array();\r","type":"equal"}],"line":261}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollow_users\t= array();\r","type":"equal"}],"line":279},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollow_users\t= array();\r","type":"equal"}],"line":262}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollow_groups\t= array();\r","type":"equal"}],"line":280},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollow_groups\t= array();\r","type":"equal"}],"line":263}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":281},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":264}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":282},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":265}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":283},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":266}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":284},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":267}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":285},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":268}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":286},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":269}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":287},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":270}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":288},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":271}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":289},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":272}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":290},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":273}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r","type":"equal"}],"line":291},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r","type":"equal"}],"line":274}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":292},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":275}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":293},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":276}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":294},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":277}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":295},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":278}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":296},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":279}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":297},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":280}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\tpublic","type":"remove"},{"value":" function get_mostactive_users($force_refresh=FALSE)\r","type":"equal"}],"line":298},"right":{"chunks":[{"value":"\tpublic","type":"insert"},{"value":" function get_mostactive_users($force_refresh=FALSE)\r","type":"equal"}],"line":281}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":299},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":282}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":300},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":283}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":301},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":284}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":302},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":285}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r","type":"equal"}],"line":303},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r","type":"equal"}],"line":286}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":304},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":287}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":305},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":288}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":306},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":289}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":307},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":290}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":308},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":291}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$days\t= 5;\r","type":"equal"}],"line":309},"right":{"chunks":[{"value":"\t\t\t$days\t= 5;\r","type":"equal"}],"line":292}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":310},"right":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":293}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r","type":"equal"}],"line":311},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r","type":"equal"}],"line":294}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":312},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":295}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":313},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":296}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":314},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":297}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":315},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":298}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":316},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":299}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":317},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":300}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":318},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":319},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":320},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":301}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_latest_users($force_refresh=FALSE)\r","type":"equal"}],"line":321},"right":{"chunks":[{"value":"\t\tpublic function get_latest_users($force_refresh=FALSE)\r","type":"equal"}],"line":302}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":322},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":303}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":323},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":304}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":324},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":305}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":325},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":306}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r","type":"equal"}],"line":326},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r","type":"equal"}],"line":307}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":327},"right":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$cache-\u003eget($cachekey);\r","type":"insert"}],"line":308}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":328},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":309}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":329},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":310}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":330},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":311}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":331},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":312}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":332},"right":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":313}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ","type":"equal"},{"value":" OR sus_time\u003c\"'.time().'\" ","type":"remove"},{"value":"ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":333},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ","type":"equal"},{"value":"ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":314}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":334},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":315}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":335},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":316}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":336},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":317}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":337},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":318}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":338},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":319}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":339},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":320}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":340},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":321}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\tpublic","type":"remove"},{"value":" function get_online_users($force_refresh=FALSE)\r","type":"equal"}],"line":341},"right":{"chunks":[{"value":"\t\tpublic","type":"insert"},{"value":" function get_online_users($force_refresh=FALSE)\r","type":"equal"}],"line":322}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":342},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":323}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":343},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":324}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":344},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":325}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":345},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":326}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r","type":"equal"}],"line":346},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r","type":"equal"}],"line":327}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":347},"right":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$cache-\u003eget($cachekey);\r","type":"insert"}],"line":328}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":348},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":329}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":349},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":330}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":350},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":331}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":351},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":332}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"30;\r","type":"remove"}],"line":352},"right":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"20;\r","type":"insert"},{"value":"","type":"equal"}],"line":333}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$time\t= 15*60;\r","type":"remove"},{"value":"","type":"equal"}],"line":353},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT ","type":"equal"},{"value":"'.$num);\r","type":"insert"}],"line":334}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT ","type":"equal"},{"value":"'.($num+1));\r","type":"remove"}],"line":354},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":355},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":335}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\tif( $obj-\u003elastclick_date \u003c ","type":"equal"},{"value":"time() - $time","type":"remove"},{"value":" ) {\r","type":"equal"}],"line":356},"right":{"chunks":[{"value":"\t\t\t\tif( $obj-\u003elastclick_date \u003c ","type":"equal"},{"value":"time()-30*60","type":"insert"},{"value":" ) {\r","type":"equal"}],"line":336}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tbreak;\r","type":"equal"}],"line":357},"right":{"chunks":[{"value":"\t\t\t\t\tbreak;\r","type":"equal"}],"line":337}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":358},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":338}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= ","type":"equal"},{"value":"$this-\u003eget_user_by_id($obj-\u003eid);\r","type":"remove"}],"line":359},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= ","type":"equal"},{"value":"intval($obj-\u003eid);\r","type":"insert"}],"line":339}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":360},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":340}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, $num);\r","type":"remove"}],"line":361},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"insert"}],"line":341}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset( $cachekey, $data, 10*60 );\r","type":"remove"}],"line":362},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":363},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":342}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":364},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":343}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":365},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":344}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":366},"right":{"chunks":[{"value":"\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":345}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":367},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":346}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":368},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":347}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":369},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":348}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":370},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":349}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($gname) ) {\r","type":"equal"}],"line":371},"right":{"chunks":[{"value":"\t\t\tif( empty($gname) ) {\r","type":"equal"}],"line":350}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":372},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":351}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":373},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":352}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r","type":"equal"}],"line":374},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r","type":"equal"}],"line":353}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":375},"right":{"chunks":[{"value":"\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":354}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r","type":"equal"}],"line":376},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r","type":"equal"}],"line":355}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":377},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":356}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":378},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":357}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= FALSE;\r","type":"equal"}],"line":379},"right":{"chunks":[{"value":"\t\t\t$gid\t= FALSE;\r","type":"equal"}],"line":358}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":380},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":359}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":381},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":360}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$gid\t= intval($o-\u003eid);\r","type":"equal"}],"line":382},"right":{"chunks":[{"value":"\t\t\t\t$gid\t= intval($o-\u003eid);\r","type":"equal"}],"line":361}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":383},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":362}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":384},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":363}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":385},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":364}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":386},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":365}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":387},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":366}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":388},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":367}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":389},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":368}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":390},"right":{"chunks":[{"value":"\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":369}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":391},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":370}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":392},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":371}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":393},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":372}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":394},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":373}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":395},"right":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":374}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":396},"right":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":375}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":397},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":376}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":398},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":377}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":399},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":378}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r","type":"equal"}],"line":400},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r","type":"equal"}],"line":379}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":401},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":380}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":402},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":381}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":403},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":382}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":404},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":383}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":405},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":384}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":406},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":385}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":407},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":386}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\t\r","type":"equal"}],"line":408},"right":{"chunks":[{"value":"\t\t\t}\t\r","type":"equal"}],"line":387}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":409},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":388}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":410},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":389}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":411},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":390}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":412},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":391}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":413},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":392}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r","type":"equal"}],"line":414},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r","type":"equal"}],"line":393}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":415},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":394}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":416},"right":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":395}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r","type":"equal"}],"line":417},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r","type":"equal"}],"line":396}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":418},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":397}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":419},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":398}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":420},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":399}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":421},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":400}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":422},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":401}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":423},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":402}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":424},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":403}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":425},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":404}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":426},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":405}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":427},"right":{"chunks":[{"value":"\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":406}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":428},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":407}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":429},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":408}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":430},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":409}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":431},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":410}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":432},"right":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":411}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":433},"right":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":412}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":434},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":413}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":435},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":414}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":436},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":415}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r","type":"equal"}],"line":437},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r","type":"equal"}],"line":416}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":438},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":417}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":439},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":418}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":440},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":419}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":441},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":420}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":442},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":421}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":443},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":422}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":444},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":423}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":445},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":424}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":446},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":425}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":447},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":426}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":448},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":427}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":449},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":428}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":450},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":429}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r","type":"equal"}],"line":451},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r","type":"equal"}],"line":430}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":452},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":431}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":453},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":432}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":454},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":433}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":455},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":434}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":456},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":435}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":457},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":436}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":458},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":437}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":459},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":438}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":460},"right":{"chunks":[{"value":"\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":439}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":461},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":440}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":462},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":441}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":463},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":442}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":464},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":443}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":465},"right":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":444}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":466},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":445}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":467},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":446}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":468},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":447}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r","type":"equal"}],"line":469},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r","type":"equal"}],"line":448}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":470},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":449}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":471},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":450}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":472},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":451}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":473},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":452}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":474},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":453}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":475},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":454}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":476},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":455}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":477},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":456}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":478},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":457}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":479},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":458}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":480},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":459}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":481},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":460}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":482},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":461}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":483},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":462}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":484},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":463}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":485},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":464}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":486},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":465}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":487},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":466}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":488},"right":{"chunks":[{"value":"\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":467}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":489},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":468}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":490},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":469}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":491},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":470}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":492},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":471}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":493},"right":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":472}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":494},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":473}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":495},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":474}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r","type":"equal"}],"line":496},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r","type":"equal"}],"line":475}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":497},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":476}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":498},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":477}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":499},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":478}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":500},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":479}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":501},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":480}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($g-\u003eis_public == 0) {\r","type":"equal"}],"line":502},"right":{"chunks":[{"value":"\t\t\tif($g-\u003eis_public == 0) {\r","type":"equal"}],"line":481}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r","type":"equal"}],"line":503},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r","type":"equal"}],"line":482}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE ","type":"equal"},{"value":" (active=1 OR sus_time\u003c\"'.time().'\")","type":"remove"},{"value":" AND is_network_admin=1', FALSE);\r","type":"equal"}],"line":504},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE ","type":"equal"},{"value":"active=1","type":"insert"},{"value":" AND is_network_admin=1', FALSE);\r","type":"equal"}],"line":483}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":505},"right":{"chunks":[{"value":"\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":484}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r","type":"equal"}],"line":506},"right":{"chunks":[{"value":"\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r","type":"equal"}],"line":485}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":507},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":486}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= array_unique($u_in);\r","type":"equal"}],"line":508},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= array_unique($u_in);\r","type":"equal"}],"line":487}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r","type":"equal"}],"line":509},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r","type":"equal"}],"line":488}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":510},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":489}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":511},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":490}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\telse {\r","type":"equal"}],"line":512},"right":{"chunks":[{"value":"\t\t\telse {\r","type":"equal"}],"line":491}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":513},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":492}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":514},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":493}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":515},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":494}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r","type":"equal"}],"line":516},"right":{"chunks":[{"value":"\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r","type":"equal"}],"line":495}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":517},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":496}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":518},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":497}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":519},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":498}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":520},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":499}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":521},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":500}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_last_post_id()\r","type":"equal"}],"line":522},"right":{"chunks":[{"value":"\t\tpublic function get_last_post_id()\r","type":"equal"}],"line":501}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":523},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":502}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":524},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":503}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn 0;\r","type":"equal"}],"line":525},"right":{"chunks":[{"value":"\t\t\t\treturn 0;\r","type":"equal"}],"line":504}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":526},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":505}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r","type":"equal"}],"line":527},"right":{"chunks":[{"value":"\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r","type":"equal"}],"line":506}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":528},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":507}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":529},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":508}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r","type":"equal"}],"line":530},"right":{"chunks":[{"value":"\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r","type":"equal"}],"line":509}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":531},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":510}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r","type":"equal"}],"line":532},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r","type":"equal"}],"line":511}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":533},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":512}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":534},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":513}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":535},"right":{"chunks":[{"value":"\t\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":514}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":536},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":515}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// this is to avoid running the query below multiple times at once \r","type":"equal"}],"line":537},"right":{"chunks":[{"value":"\t\t\t// this is to avoid running the query below multiple times at once \r","type":"equal"}],"line":516}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r","type":"equal"}],"line":538},"right":{"chunks":[{"value":"\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r","type":"equal"}],"line":517}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r","type":"equal"}],"line":539},"right":{"chunks":[{"value":"\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r","type":"equal"}],"line":518}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r","type":"equal"}],"line":540},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r","type":"equal"}],"line":519}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// \r","type":"equal"}],"line":541},"right":{"chunks":[{"value":"\t\t\t// \r","type":"equal"}],"line":520}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":542},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":521}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r","type":"equal"}],"line":543},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r","type":"equal"}],"line":522}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":544},"right":{"chunks":[{"value":"\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":523}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\tif( ! ","type":"equal"},{"value":"preg_match_all('/\\#([א-תÀ-ÿ一-龥а-яa-z0-9\\-_]{1,50})/iu',","type":"remove"},{"value":" stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r","type":"equal"}],"line":545},"right":{"chunks":[{"value":"\t\t\t\tif( ! ","type":"equal"},{"value":"preg_match_all('/\\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\\-_]{1,50})/iu',","type":"insert"},{"value":" stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r","type":"equal"}],"line":524}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tcontinue;\r","type":"equal"}],"line":546},"right":{"chunks":[{"value":"\t\t\t\t\tcontinue;\r","type":"equal"}],"line":525}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":547},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":526}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array();\r","type":"equal"}],"line":548},"right":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array();\r","type":"equal"}],"line":527}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($matches[1] as $tg) {\r","type":"equal"}],"line":549},"right":{"chunks":[{"value":"\t\t\t\tforeach($matches[1] as $tg) {\r","type":"equal"}],"line":528}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r","type":"equal"}],"line":550},"right":{"chunks":[{"value":"\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r","type":"equal"}],"line":529}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":551},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":530}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r","type":"equal"}],"line":552},"right":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r","type":"equal"}],"line":531}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$weight\t= 1;\r","type":"equal"}],"line":553},"right":{"chunks":[{"value":"\t\t\t\t$weight\t= 1;\r","type":"equal"}],"line":532}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r","type":"equal"}],"line":554},"right":{"chunks":[{"value":"\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r","type":"equal"}],"line":533}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 100;\r","type":"equal"}],"line":555},"right":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 100;\r","type":"equal"}],"line":534}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":556},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":535}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r","type":"equal"}],"line":557},"right":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r","type":"equal"}],"line":536}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weigth\t= 20;\r","type":"equal"}],"line":558},"right":{"chunks":[{"value":"\t\t\t\t\t$weigth\t= 20;\r","type":"equal"}],"line":537}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":559},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":538}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r","type":"equal"}],"line":560},"right":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r","type":"equal"}],"line":539}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 5;\r","type":"equal"}],"line":561},"right":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 5;\r","type":"equal"}],"line":540}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":562},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":541}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($thisposttags as $tg) {\r","type":"equal"}],"line":563},"right":{"chunks":[{"value":"\t\t\t\tforeach($thisposttags as $tg) {\r","type":"equal"}],"line":542}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif( ! isset($data[$tg]) ) {\r","type":"equal"}],"line":564},"right":{"chunks":[{"value":"\t\t\t\t\tif( ! isset($data[$tg]) ) {\r","type":"equal"}],"line":543}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$data[$tg]\t= 0;\r","type":"equal"}],"line":565},"right":{"chunks":[{"value":"\t\t\t\t\t\t$data[$tg]\t= 0;\r","type":"equal"}],"line":544}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":566},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":545}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data[$tg]\t+= $weight;\r","type":"equal"}],"line":567},"right":{"chunks":[{"value":"\t\t\t\t\t$data[$tg]\t+= $weight;\r","type":"equal"}],"line":546}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":568},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":547}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":569},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":548}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tarsort($data);\r","type":"equal"}],"line":570},"right":{"chunks":[{"value":"\t\t\tarsort($data);\r","type":"equal"}],"line":549}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array_keys($data);\r","type":"equal"}],"line":571},"right":{"chunks":[{"value":"\t\t\t$data\t= array_keys($data);\r","type":"equal"}],"line":550}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, 50);\r","type":"equal"}],"line":572},"right":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, 50);\r","type":"equal"}],"line":551}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":573},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":552}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r","type":"equal"}],"line":574},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r","type":"equal"}],"line":553}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":575},"right":{"chunks":[{"value":"\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":554}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":576},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":555}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":577},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":556}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r","type":"equal"}],"line":578},"right":{"chunks":[{"value":"\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r","type":"equal"}],"line":557}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":579},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":558}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r","type":"equal"}],"line":580},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r","type":"equal"}],"line":559}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":581},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":560}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":582},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":561}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":583},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":562}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":584},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":563}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":585},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":564}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":586},"right":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":565}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r","type":"equal"}],"line":587},"right":{"chunks":[{"value":"\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r","type":"equal"}],"line":566}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tset_user_default_notification_rules($user_id);\r","type":"equal"}],"line":588},"right":{"chunks":[{"value":"\t\t\t\tset_user_default_notification_rules($user_id);\r","type":"equal"}],"line":567}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":589},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":568}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":590},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":569}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":591},"right":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":570}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":592},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":571}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":593},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":572}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tunset($obj-\u003euser_id);\r","type":"equal"}],"line":594},"right":{"chunks":[{"value":"\t\t\tunset($obj-\u003euser_id);\r","type":"equal"}],"line":573}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":595},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":574}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $obj;\r","type":"equal"}],"line":596},"right":{"chunks":[{"value":"\t\t\treturn $obj;\r","type":"equal"}],"line":575}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":597},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":576}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":598},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":577}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r","type":"equal"}],"line":599},"right":{"chunks":[{"value":"\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r","type":"equal"}],"line":578}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":600},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":579}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$id\t= intval($id);\r","type":"equal"}],"line":601},"right":{"chunks":[{"value":"\t\t\t$id\t= intval($id);\r","type":"equal"}],"line":580}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":602},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":581}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r","type":"equal"}],"line":603},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r","type":"equal"}],"line":582}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":604},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":583}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":605},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":584}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":606},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":585}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":607},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":586}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":608},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":587}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":609},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":588}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":610},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":589}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":611},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":590}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":612},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":591}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":613},"right":{"chunks":[{"value":"\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":592}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r","type":"equal"}],"line":614},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r","type":"equal"}],"line":593}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":615},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":594}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":616},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":595}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":617},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":596}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":618},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":597}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":619},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":598}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":620},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":599}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":621},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":600}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r","type":"equal"}],"line":622},"right":{"chunks":[{"value":"\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r","type":"equal"}],"line":601}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":623},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":602}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r","type":"equal"}],"line":624},"right":{"chunks":[{"value":"\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r","type":"equal"}],"line":603}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$if_exists_action='ignore';\r","type":"remove"}],"line":625},"right":{"chunks":[{"value":"\t\t\t\r","type":"insert"}],"line":604}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":626},"right":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":605}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$to_user_id\t\t= intval($to_user_id);\r","type":"equal"}],"line":627},"right":{"chunks":[{"value":"\t\t\t$to_user_id\t\t= intval($to_user_id);\r","type":"equal"}],"line":606}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$in_group_id\t= intval($in_group_id);\r","type":"equal"}],"line":628},"right":{"chunks":[{"value":"\t\t\t$in_group_id\t= intval($in_group_id);\r","type":"equal"}],"line":607}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r","type":"equal"}],"line":629},"right":{"chunks":[{"value":"\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r","type":"equal"}],"line":608}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":630},"right":{"chunks":[{"value":"\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":609}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":631},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":610}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":632},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":611}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":633},"right":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":612}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":634},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":613}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":635},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":614}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":636},"right":{"chunks":[{"value":"\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":615}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r","type":"equal"}],"line":637},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r","type":"equal"}],"line":616}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r","type":"equal"}],"line":638},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r","type":"equal"}],"line":617}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":639},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":618}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":640},"right":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":619}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":641},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":620}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":642},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":621}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":643},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":622}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= (object) array (\r","type":"equal"}],"line":644},"right":{"chunks":[{"value":"\t\t\t$data\t= (object) array (\r","type":"equal"}],"line":623}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'type'\t\t=\u003e 'notif',\r","type":"equal"}],"line":645},"right":{"chunks":[{"value":"\t\t\t\t'type'\t\t=\u003e 'notif',\r","type":"equal"}],"line":624}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r","type":"equal"}],"line":646},"right":{"chunks":[{"value":"\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r","type":"equal"}],"line":625}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r","type":"equal"}],"line":647},"right":{"chunks":[{"value":"\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r","type":"equal"}],"line":626}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r","type":"equal"}],"line":648},"right":{"chunks":[{"value":"\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r","type":"equal"}],"line":627}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'lang_params'\t=\u003e $lang_params,\r","type":"equal"}],"line":649},"right":{"chunks":[{"value":"\t\t\t\t'lang_params'\t=\u003e $lang_params,\r","type":"equal"}],"line":628}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r","type":"equal"}],"line":650},"right":{"chunks":[{"value":"\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r","type":"equal"}],"line":629}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":651},"right":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":630}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r","type":"equal"}],"line":652},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r","type":"equal"}],"line":631}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $to_user_id \u003e 0 ) {\r","type":"equal"}],"line":653},"right":{"chunks":[{"value":"\t\t\tif( $to_user_id \u003e 0 ) {\r","type":"equal"}],"line":632}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":654},"right":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":633}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":655},"right":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":634}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":656},"right":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":635}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":657},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":636}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":658},"right":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":637}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":659},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":638}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":660},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":639}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":661},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":640}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r","type":"equal"}],"line":662},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r","type":"equal"}],"line":641}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":663},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":642}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":664},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":643}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":665},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":644}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":666},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":645}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t//\t$this-\u003edb2-\u003equery('INSERT","type":"remove"},{"value":" DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r","type":"equal"}],"line":667},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT","type":"insert"},{"value":" DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r","type":"equal"},{"value":"","type":"insert"}],"line":646}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003eset_dashboard_tabstate($to_user_id, 'system', 1);\r","type":"insert"}],"line":647}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":668},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":648}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\telseif( $in_group_id \u003e 0 ) {\r","type":"equal"}],"line":669},"right":{"chunks":[{"value":"\t\t\telseif( $in_group_id \u003e 0 ) {\r","type":"equal"}],"line":649}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":670},"right":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":650}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":671},"right":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":651}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":672},"right":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":652}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":673},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":653}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":674},"right":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":654}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":675},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":655}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":676},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":656}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":677},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":657}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":678},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":658}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":679},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":659}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":680},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":660}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":681},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":661}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":682},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":662}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":683},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":663}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r","type":"equal"}],"line":684},"right":{"chunks":[{"value":"\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r","type":"equal"}],"line":664}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":685},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":665}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C, $D, $page;\r","type":"equal"}],"line":686},"right":{"chunks":[{"value":"\t\t\tglobal $C, $D, $page;\r","type":"equal"}],"line":666}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $inD ) {\r","type":"equal"}],"line":687},"right":{"chunks":[{"value":"\t\t\tif( $inD ) {\r","type":"equal"}],"line":667}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($inD as $k=\u003e$v) {\r","type":"equal"}],"line":688},"right":{"chunks":[{"value":"\t\t\t\tforeach($inD as $k=\u003e$v) {\r","type":"equal"}],"line":668}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$D-\u003e$k\t= $v;\r","type":"equal"}],"line":689},"right":{"chunks":[{"value":"\t\t\t\t\t$D-\u003e$k\t= $v;\r","type":"equal"}],"line":669}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":690},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":670}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":691},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":671}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r","type":"equal"}],"line":692},"right":{"chunks":[{"value":"\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r","type":"equal"}],"line":672}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r","type":"equal"}],"line":693},"right":{"chunks":[{"value":"\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r","type":"equal"}],"line":673}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":694},"right":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":674}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":695},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":675}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003epage\t= \u0026 $page;\r","type":"equal"}],"line":696},"right":{"chunks":[{"value":"\t\t\t$D-\u003epage\t= \u0026 $page;\r","type":"equal"}],"line":676}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003euser\t= $to_user;\r","type":"equal"}],"line":697},"right":{"chunks":[{"value":"\t\t\t$D-\u003euser\t= $to_user;\r","type":"equal"}],"line":677}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003esubject\t\t= $subject;\r","type":"equal"}],"line":698},"right":{"chunks":[{"value":"\t\t\t$D-\u003esubject\t\t= $subject;\r","type":"equal"}],"line":678}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003emessage_txt\t= $message_txt;\r","type":"equal"}],"line":699},"right":{"chunks":[{"value":"\t\t\t$D-\u003emessage_txt\t= $message_txt;\r","type":"equal"}],"line":679}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003emessage_html\t= $message_html;\r","type":"equal"}],"line":700},"right":{"chunks":[{"value":"\t\t\t$D-\u003emessage_html\t= $message_html;\r","type":"equal"}],"line":680}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r","type":"equal"}],"line":701},"right":{"chunks":[{"value":"\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r","type":"equal"}],"line":681}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r","type":"equal"}],"line":702},"right":{"chunks":[{"value":"\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r","type":"equal"}],"line":682}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r","type":"equal"}],"line":703},"right":{"chunks":[{"value":"\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r","type":"equal"}],"line":683}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":704},"right":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":684}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":705},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":685}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r","type":"equal"}],"line":706},"right":{"chunks":[{"value":"\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r","type":"equal"}],"line":686}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r","type":"equal"}],"line":707},"right":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r","type":"equal"}],"line":687}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r","type":"equal"}],"line":708},"right":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r","type":"equal"}],"line":688}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":709},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":689}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r","type":"equal"}],"line":710},"right":{"chunks":[{"value":"\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r","type":"equal"}],"line":690}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":711},"right":{"chunks":[{"value":"\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":691}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r","type":"equal"}],"line":712},"right":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r","type":"equal"}],"line":692}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r","type":"equal"}],"line":713},"right":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r","type":"equal"}],"line":693}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":714},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":694}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r","type":"equal"}],"line":715},"right":{"chunks":[{"value":"\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r","type":"equal"}],"line":695}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":716},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":696}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":717},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":697}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r","type":"equal"}],"line":718},"right":{"chunks":[{"value":"\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r","type":"equal"}],"line":698}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":719},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":699}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$user_id\t= intval($user_id);\r","type":"equal"}],"line":720},"right":{"chunks":[{"value":"\t\t\t$user_id\t= intval($user_id);\r","type":"equal"}],"line":700}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( is_array($tabs) ) {\r","type":"equal"}],"line":721},"right":{"chunks":[{"value":"\t\t\tif( is_array($tabs) ) {\r","type":"equal"}],"line":701}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$result\t= array();\r","type":"equal"}],"line":722},"right":{"chunks":[{"value":"\t\t\t\t$result\t= array();\r","type":"equal"}],"line":702}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$tmp\t= array();\r","type":"equal"}],"line":723},"right":{"chunks":[{"value":"\t\t\t\t$tmp\t= array();\r","type":"equal"}],"line":703}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($tabs as $tab) {\r","type":"equal"}],"line":724},"right":{"chunks":[{"value":"\t\t\t\tforeach($tabs as $tab) {\r","type":"equal"}],"line":704}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$result[$tab]\t= 0;\r","type":"equal"}],"line":725},"right":{"chunks":[{"value":"\t\t\t\t\t$result[$tab]\t= 0;\r","type":"equal"}],"line":705}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r","type":"equal"}],"line":726},"right":{"chunks":[{"value":"\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r","type":"equal"}],"line":706}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":727},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":707}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$tmp\t= implode(', ', $tmp);\r","type":"equal"}],"line":728},"right":{"chunks":[{"value":"\t\t\t\t$tmp\t= implode(', ', $tmp);\r","type":"equal"}],"line":708}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs),","type":"equal"}],"line":729},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs),","type":"equal"},{"value":" FALSE);\r","type":"insert"}],"line":709}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"insert"}],"line":710}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r","type":"insert"}],"line":711}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r","type":"insert"}],"line":712}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r","type":"insert"}],"line":713}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"insert"}],"line":714}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"insert"}],"line":715}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\treturn $result;\r","type":"insert"}],"line":716}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t}\r","type":"insert"}],"line":717}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\telse {\r","type":"insert"}],"line":718}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r","type":"insert"}],"line":719}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"insert"}],"line":720}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\treturn 0;\r","type":"insert"}],"line":721}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"insert"}],"line":722}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t","type":"insert"}],"line":723}}],"blocks":[{"index":0,"lineStart":0,"lineEnd":38,"type":{"left":"equal","right":"equal"}},{"index":1,"lineStart":39,"lineEnd":43,"type":{"left":"remove","right":"equal"}},{"index":2,"lineStart":44,"lineEnd":44,"type":{"left":"equal","right":"equal"}},{"index":3,"lineStart":45,"lineEnd":45,"type":{"left":"remove","right":"insert"}},{"index":4,"lineStart":46,"lineEnd":46,"type":{"left":"equal","right":"equal"}},{"index":5,"lineStart":47,"lineEnd":47,"type":{"left":"remove","right":"insert"}},{"index":6,"lineStart":48,"lineEnd":51,"type":{"left":"equal","right":"equal"}},{"index":7,"lineStart":52,"lineEnd":52,"type":{"left":"remove","right":"equal"}},{"index":8,"lineStart":53,"lineEnd":54,"type":{"left":"equal","right":"equal"}},{"index":9,"lineStart":55,"lineEnd":55,"type":{"left":"equal","right":"insert"}},{"index":10,"lineStart":56,"lineEnd":108,"type":{"left":"equal","right":"equal"}},{"index":11,"lineStart":109,"lineEnd":109,"type":{"left":"remove","right":"insert"}},{"index":12,"lineStart":110,"lineEnd":132,"type":{"left":"equal","right":"equal"}},{"index":13,"lineStart":133,"lineEnd":133,"type":{"left":"remove","right":"insert"}},{"index":14,"lineStart":134,"lineEnd":169,"type":{"left":"equal","right":"equal"}},{"index":15,"lineStart":170,"lineEnd":176,"type":{"left":"remove","right":"insert"}},{"index":16,"lineStart":177,"lineEnd":207,"type":{"left":"equal","right":"equal"}},{"index":17,"lineStart":208,"lineEnd":210,"type":{"left":"remove","right":"insert"}},{"index":18,"lineStart":211,"lineEnd":252,"type":{"left":"equal","right":"equal"}},{"index":19,"lineStart":253,"lineEnd":253,"type":{"left":"remove","right":"equal"}},{"index":20,"lineStart":254,"lineEnd":254,"type":{"left":"equal","right":"equal"}},{"index":21,"lineStart":255,"lineEnd":257,"type":{"left":"remove","right":"equal"}},{"index":22,"lineStart":258,"lineEnd":297,"type":{"left":"equal","right":"equal"}},{"index":23,"lineStart":298,"lineEnd":298,"type":{"left":"remove","right":"insert"}},{"index":24,"lineStart":299,"lineEnd":317,"type":{"left":"equal","right":"equal"}},{"index":25,"lineStart":318,"lineEnd":319,"type":{"left":"remove","right":"equal"}},{"index":26,"lineStart":320,"lineEnd":326,"type":{"left":"equal","right":"equal"}},{"index":27,"lineStart":327,"lineEnd":327,"type":{"left":"remove","right":"insert"}},{"index":28,"lineStart":328,"lineEnd":332,"type":{"left":"equal","right":"equal"}},{"index":29,"lineStart":333,"lineEnd":333,"type":{"left":"remove","right":"insert"}},{"index":30,"lineStart":334,"lineEnd":340,"type":{"left":"equal","right":"equal"}},{"index":31,"lineStart":341,"lineEnd":341,"type":{"left":"remove","right":"insert"}},{"index":32,"lineStart":342,"lineEnd":346,"type":{"left":"equal","right":"equal"}},{"index":33,"lineStart":347,"lineEnd":347,"type":{"left":"remove","right":"insert"}},{"index":34,"lineStart":348,"lineEnd":351,"type":{"left":"equal","right":"equal"}},{"index":35,"lineStart":352,"lineEnd":354,"type":{"left":"remove","right":"insert"}},{"index":36,"lineStart":355,"lineEnd":355,"type":{"left":"equal","right":"equal"}},{"index":37,"lineStart":356,"lineEnd":356,"type":{"left":"remove","right":"insert"}},{"index":38,"lineStart":357,"lineEnd":358,"type":{"left":"equal","right":"equal"}},{"index":39,"lineStart":359,"lineEnd":359,"type":{"left":"remove","right":"insert"}},{"index":40,"lineStart":360,"lineEnd":360,"type":{"left":"equal","right":"equal"}},{"index":41,"lineStart":361,"lineEnd":362,"type":{"left":"remove","right":"insert"}},{"index":42,"lineStart":363,"lineEnd":503,"type":{"left":"equal","right":"equal"}},{"index":43,"lineStart":504,"lineEnd":504,"type":{"left":"remove","right":"insert"}},{"index":44,"lineStart":505,"lineEnd":544,"type":{"left":"equal","right":"equal"}},{"index":45,"lineStart":545,"lineEnd":545,"type":{"left":"remove","right":"insert"}},{"index":46,"lineStart":546,"lineEnd":624,"type":{"left":"equal","right":"equal"}},{"index":47,"lineStart":625,"lineEnd":625,"type":{"left":"remove","right":"insert"}},{"index":48,"lineStart":626,"lineEnd":666,"type":{"left":"equal","right":"equal"}},{"index":49,"lineStart":667,"lineEnd":668,"type":{"left":"remove","right":"insert"}},{"index":50,"lineStart":669,"lineEnd":729,"type":{"left":"equal","right":"equal"}},{"index":51,"lineStart":730,"lineEnd":744,"type":{"left":"remove","right":"insert"}}],"added":37,"removed":41,"moves":{"deletionToInsertionMap":[],"insertionToDeletionMap":[]},"fullyNormalized":false,"diffLevel":"word"}],"diffLevel":"word","syntaxHighlight":"","isHydrated":false,"commentThreads":[],"commentThreadsLoadedForSlug":"","textDiffOutputSettings":{"diffVersion":"regular","diffType":"split","diffCompression":"expanded","diffLevel":"word","syntaxHighlight":""}},"feedback":{"error":false,"success":false,"isHydrated":false},"user":{"status":"to be determined","error":false,"success":false,"diffs":[],"secretDiffs":[],"diffType":"split","diffVersion":"regular","isHydrated":false},"license":{"error":false,"licenseKeyInitiallyValidated":false,"valid":false,"licenses":[],"isHydrated":false,"isOfflineLicense":false},"payments":{"subscriptions":[],"paymentMethods":[],"subscriptionsStatus":"idle","isHydrated":false},"organization":{"samlSsoConfigured":false,"organization":null}},"messages":{"Meta":{"keywords":"comparer du texte, diff en ligne, diff, outil de diff, diff rapide, quickdiff, outil de diff en ligne, vérificateur de diff, gnu diff","content":"Diffchecker compare le texte pour trouver la différence entre deux fichiers texte. Collez simplement vos fichiers et cliquez sur 'Trouver la différence'!"},"Header":{"signIn":"Se connecter","createAccount":"Créer un compte","downloadDesktop":"Télécharger Diffchecker Desktop"},"Nav":{"text":"Texte","images":"Images","document":"PDF","excel":"Excel","folders":"Dossiers","features":"Fonctions","desktop":"Application de bureau","pricing":"Tarifs"},"SidebarSavedDiffs":{"savedDiffs":"Les différences enregistrées","viewAll":"Tout afficher","showLess":"Afficher moins","haventSavedDiffs":"Vous n'avez aucun Diff enregistré"},"Homepage":{"title":"Diffchecker - Comparez du texte en ligne pour trouver la différence entre deux fichiers texte"},"Hero":{"title":"Comparer le texte","description":"Encuentra la diferencia entre dos archivos de texto","description1":"Diffchecker compare le texte pour trouver la différence entre deux fichiers texte.","description2":" Collez vos fichiers et cliquez sur \"Trouver la différence\"","tryDesktop":"Essayez notre application de bureau","features":"Travaillez hors ligne, découvrez les fonctionnalités avancées et beaucoup plus!","checkOut":"Téléchargez Diffchecker Desktop"},"ExcelHero":{"header":"Comparer des fichiers Excel","description1":"Trouvez la différence entre deux fichiers Excel et d'autres feuilles de calcul!","description2":"Types de fichiers:"},"ImageHero":{"header":"Comparer des images","description1":"Trouvez la différence entre deux images ou d'autres illustrations!","description2":"Importez deux images et Diffchecker illustrera la différence."},"PdfHero":{"header":"Comparer des fichiers PDF","description1":"Trouvez la différence entre deux fichiers PDF!","description2":"Importez deux PDFs et la différence apparaîtra ci-dessous."},"Diff":{"submit":"Trouver la différence"},"TextDiff":{"originalTextUpload":"Texte d'origine","changedTextUpload":"Texte modifié"},"ExcelDiff":{"Meta":{"title":"Comparez la différence entre des fichiers Excel et d'autres feuilles de calcul","description":"Comparez la différence entre deux fichiers Excel et d'autres feuilles de calcul! Formats de fichiers pris en charge: xls/xlsx/xlsm/xlsb, csv, txt, dif, ods.","keywords":"excel diff, comparer des fichiers excel, différence entre des fichiers excel, comparaison de fichiers excel, comparer excel en ligne, comparer 2 fichiers excel, comparer 2 colonnes excel, csv diff, comparer des fichiers csv, différence entre des fichiers csv, comparaison de fichiers csv, tableur diff, comparer les fichiers de feuille de calcul, différence entre les feuilles de calcul, comparaison de feuille de calcul"},"originalExcelUpload":"Feuille de calcul originale","changedExcelUpload":"Feuille de calcul modifiée"},"ImageDiff":{"Meta":{"title":"Comparez la différence entre des images","description":"Comparez la différence entre des images ou d'autres images! Entrez deux images et la différence s'affichera ci-dessous.","keywords":"image diff, comparer des images, différence entre des fichiers image, comparaison de fichiers image, png diff, comparer des fichiers png, différence entre des fichiers png, comparaison de fichiers png, gif diff, comparer des fichiers gif, différence entre gifs, comparaison gif"},"originalImageUpload":"Image d'origine","changedImageUpload":"Image modifié"},"PdfDiff":{"Meta":{"title":"Comparez la différence entre deux fichiers PDF","description":"Comparez la différence entre deux Fichiers PDF ! Saisissez deux fichiers PDF et la différence s'affichera ci-dessous.","keywords":"diff pdf, comparer les pdf, différence entre les pdf, comparaison de fichiers pdf"},"originalPdfUpload":"PDF d'origine","changedPdfUpload":"PDF modifié"},"VersionToggle":{"regular":"Habituel","realTime":"En temps réel"},"TypeToggle":{"split":"Divisé","unified":"Unifié"},"LevelToggle":{"word":"Mot","character":"Caractère"},"CompressionToggle":{"expanded":"Décompacté","collapsed":"Réduit"},"AdvancedDiffDropdown":{"placeholder":"Outils","toLowerCase":"Transformer en minuscules","sortLines":"Trier les lignes","replaceLineBreaksWithSpaces":"Remplacer les sauts de ligne par des espaces","trimWhitespace":"Couper les espaces blancs"},"ExcelDiffDropdown":{"tools":"Outils","sortRows":"Trier les lignes","sortColumns":"Trier les colonnes"},"DiffEditorHeader":{"merge":"Fusionner","editor":"Éditeur","compareAndMerge":"Comparer et fusionner","clear":"Effacer","exportAsExcel":"Exporter un fichier sous Excel","exportAsPdf":"Exporter au format PDF","saveDiff":"Enregistrer le Diff","share":"Partager","previous":"Précédent","next":"Suivant","selectValidSection":"Sélectionnez une section valide à fusionner"},"DiffDetails":{"copyAll":"Copier tout","copied":"Copié"},"SaveDiffModal":{"saveDiffWarning":"Pour partager votre diff, vous devez d'abord l'enregistrer","expireIn":"Expire dans","deleteDiff":"Supprimer","save":"Enregistrer","hours":"heures","days":"journées","month":"mois","never":"Jamais"},"Footer":{"contact":"Contact","cli":"CLI","terms":"Terms","privacyPolicy":"Privacy Policy","api":"API"}}},"initialState":{"abTest":{"experiments":{},"isHydrated":false},"app":{"allowUsageDataCollection":true,"diffVersion":"regular","diffCompression":"expanded","features":{"allowExplain":true,"newAccountPage":true,"recordDocumentDiff":false,"saveFilesDocumentDiff":true},"isHydrated":false},"diff":{"sidebarTab":"settings","expiry":"no","diffIndex":0,"diffs":[{"id":10573,"ip":null,"slug":"qxrjy8a4","title":null,"left":"\u003c?php\r\n\t\r\n\tclass network\r\n\t{\r\n\t\tpublic $id;\r\n\t\tpublic $info;\r\n\t\tpublic $is_private;\r\n\t\tpublic $is_public;\r\n\t\t\r\n\t\tpublic function __construct()\r\n\t\t{\r\n\t\t\t$this-\u003eid\t= FALSE;\r\n\t\t\t$this-\u003eC\t= new stdClass;\r\n\t\t\t$this-\u003einfo\t= new stdClass;\r\n\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r\n\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r\n\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r\n\t\t}\r\n\t\t\r\n\t\tpublic function LOAD()\r\n\t\t{\r\n\t\t\tif( $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$this-\u003eload_network_settings();\r\n\t\t\t$this-\u003einfo\t= (object) array(\r\n\t\t\t\t'id'\t=\u003e 1,\r\n\t\t\t);\r\n\t\t\t$this-\u003eis_private\t= FALSE;\r\n\t\t\t$this-\u003eis_public\t= TRUE;\r\n\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r\n\t\t\treturn $this-\u003eid;\r\n\t\t}\r\npublic function get_latest_dogum($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_dogum_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 40;\r\n\t\t\t$tarih = pdate(\"m-d\", time());\r\n\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function load_network_settings()\r\n\t\t{\r\n\t\t\t$db\t= \u0026$this-\u003edb1;\r\n\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r\n\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r\n\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r\n\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r\n\t\t\t}\r\n\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r\n\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r\n\t\t\t\r\n\t\t\t$current_language\t= new stdClass;\r\n\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r\n\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r\n\t\t\t\r\n\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r\n\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r\n\t\t\t}\r\n\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r\n\t\t\t\r\n\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r\n\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r\n\t\t\t}\r\n\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($uname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! is_valid_email($email) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND sus_time\u003c\"'.time().'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r\n\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r\n\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\tif($o-\u003egender=='m'){\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_MUSER;\r\n}elseif($o-\u003egender=='f'){\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_FUSER;\r\n}else{\t\t\t\t\r\n$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\t\r\n}\t\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eage\t= '';\r\n\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r\n\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r\n\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r\n\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r\n\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r\n\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r\n\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r\n\t\t\t\t\t\t\t$o-\u003eage\t--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r\n\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r\n\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r\n\t\t\t\t$o-\u003euser_details\t= FALSE;\r\n\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r\n\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r\n\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r\n\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\r\n//////////////////////// User Like ///////////////////////////\r\n\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003elikers\t\t= array();\r\n\t\t\t$data-\u003elike_users\t= array();\r\n\r\n\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n///////////////////////// User Like /////////////////////////////\r\n\r\n\r\n\r\n\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003efollowers\t\t= array();\r\n\t\t\t$data-\u003efollow_users\t= array();\r\n\t\t\t$data-\u003efollow_groups\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_mostactive_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$days\t= 5;\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n\t\t\r\n\t\tpublic function get_latest_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 OR sus_time\u003c\"'.time().'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\tpublic function get_online_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 30;\r\n\t\t\t$time\t= 15*60;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT '.($num+1));\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( $obj-\u003elastclick_date \u003c time() - $time ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t$data[]\t= $this-\u003eget_user_by_id($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$data\t= array_slice($data, 0, $num);\r\n\t\t\t$this-\u003ecache-\u003eset( $cachekey, $data, 10*60 );\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($gname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r\n\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$gid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$gid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\t\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\tif($g-\u003eis_public == 0) {\r\n\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE (active=1 OR sus_time\u003c\"'.time().'\") AND is_network_admin=1', FALSE);\r\n\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r\n\t\t\t\t}\r\n\t\t\t\t$u_in\t= array_unique($u_in);\r\n\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_last_post_id()\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn array_slice($data, 0, $count);\r\n\t\t\t}\r\n\t\t\t// this is to avoid running the query below multiple times at once \r\n\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r\n\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r\n\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r\n\t\t\t// \r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r\n\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( ! preg_match_all('/\\#([א-תÀ-ÿ一-龥а-яa-z0-9\\-_]{1,50})/iu', stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array();\r\n\t\t\t\tforeach($matches[1] as $tg) {\r\n\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r\n\t\t\t\t$weight\t= 1;\r\n\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r\n\t\t\t\t\t$weight\t= 100;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r\n\t\t\t\t\t$weigth\t= 20;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r\n\t\t\t\t\t$weight\t= 5;\r\n\t\t\t\t}\r\n\t\t\t\tforeach($thisposttags as $tg) {\r\n\t\t\t\t\tif( ! isset($data[$tg]) ) {\r\n\t\t\t\t\t\t$data[$tg]\t= 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$data[$tg]\t+= $weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tarsort($data);\r\n\t\t\t$data\t= array_keys($data);\r\n\t\t\t$data\t= array_slice($data, 0, 50);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r\n\t\t\treturn array_slice($data, 0, $count);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r\n\t\t\t\tset_user_default_notification_rules($user_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tunset($obj-\u003euser_id);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $obj;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$id\t= intval($id);\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r\n\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r\n\t\t{\r\n\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r\n\t\t\t$if_exists_action='ignore';\r\n\t\t\tglobal $C;\r\n\t\t\t$to_user_id\t\t= intval($to_user_id);\r\n\t\t\t$in_group_id\t= intval($in_group_id);\r\n\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r\n\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r\n\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$data\t= (object) array (\r\n\t\t\t\t'type'\t\t=\u003e 'notif',\r\n\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r\n\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r\n\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r\n\t\t\t\t'lang_params'\t=\u003e $lang_params,\r\n\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r\n\t\t\t);\r\n\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r\n\t\t\tif( $to_user_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t//\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r\n\t\t\t}\r\n\t\t\telseif( $in_group_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r\n\t\t{\r\n\t\t\tglobal $C, $D, $page;\r\n\t\t\tif( $inD ) {\r\n\t\t\t\tforeach($inD as $k=\u003e$v) {\r\n\t\t\t\t\t$D-\u003e$k\t= $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r\n\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$D-\u003epage\t= \u0026 $page;\r\n\t\t\t$D-\u003euser\t= $to_user;\r\n\t\t\t$D-\u003esubject\t\t= $subject;\r\n\t\t\t$D-\u003emessage_txt\t= $message_txt;\r\n\t\t\t$D-\u003emessage_html\t= $message_html;\r\n\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r\n\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r\n\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r\n\t\t\t}\r\n\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r\n\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r\n\t\t\t}\r\n\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\tif( is_array($tabs) ) {\r\n\t\t\t\t$result\t= array();\r\n\t\t\t\t$tmp\t= array();\r\n\t\t\t\tforeach($tabs as $tab) {\r\n\t\t\t\t\t$result[$tab]\t= 0;\r\n\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r\n\t\t\t\t}\r\n\t\t\t\t$tmp\t= implode(', ', $tmp);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs), FALSE);\r\n\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r\n\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\t$result\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\tif( $result \u003e 99 ) {\r\n\t\t\t\t\t$result\t= '99+';\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function set_dashboard_tabstate($user_id, $tab, $withnum=0)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\t$withnum\t= intval($withnum);\r\n\t\t\t$currnum\t= $this-\u003eget_dashboard_tabstate($user_id, $tab);\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003c=0 ) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum==0 ) {\r\n\t\t\t\t$this-\u003ereset_dashboard_tabstate($user_id, $tab);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$withnum\t+= $currnum;\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function reset_dashboard_tabstate($user_id, $tab)\r\n\t\t{\r\n\t\t\t$this-\u003edb2-\u003equery('DELETE FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tab).'\" ', FALSE);\r\n\t\t\treturn TRUE;\r\n\t\t}\r\npublic function get_user_num_comments($fid)\r\n\r\n{\r\n $nums_q = $this-\u003edb2-\u003equery('SELECT id FROM posts_comments WHERE user_id=\"'.$fid.'\"' , FALSE);\r\n $num_com = $this-\u003edb2-\u003enum_rows($nums_q);\r\n\r\nreturn $num_com;\r\n\r\n} \r\npublic function if_i_ignore($mid,$uid)\r\n\t\t{\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users_ignores WHERE ignor_id=\"'.$mid.'\" AND user_id=\"'.$uid.'\" ');\r\n\t\t\t\tif($this-\u003edb2-\u003enum_rows($r) \u003e 0) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t\t}\r\n return FALSE;\r\n\t\t}\t\r\npublic function get_mostactive_userss($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, fullname, avatar, num_posts AS c FROM users WHERE num_posts \u003e 0 ORDER BY num_posts DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003efullname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommenting_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommenting_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euser_id);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euser_id]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommented_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommented_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id\u003c\u003e0 AND posts_comments.user_id\u003c\u003e0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euid);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euid]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_users($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, fullname, avatar, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003efullname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\t\tpublic function get_mostfollowing_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mfollowing_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003ewho);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003ewho]\t= array($usr-\u003eusername, $usr-\u003efullname, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\tpublic function get_mostfollowed_groups($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, groupname, title, avatar, num_followers AS c FROM groups WHERE num_followers\u003e0 ORDER BY num_followers DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003egroupname, $obj-\u003etitle, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\npublic function get_followers_users($force_refresh=FALSE) {\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',followers_users';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_posts, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 6');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\tpublic function get_mostactive_groups($force_refresh=TRUE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id\u003c\u003e0 AND group_id\u003c\u003e0 AND api_id\u003c\u003e2 AND api_id\u003c\u003e6 GROUP BY group_id ORDER BY c DESC LIMIT 14');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$g = $this-\u003eget_group_by_id($obj-\u003egroup_id);\r\n\t\t\t\tif( !$g ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003egroup_id]\t= array($g-\u003egroupname, $g-\u003etitle, $g-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\r\n\r\n\t}\r\n\t\r\n?\u003e\r\n\r\n\r\n","right":"\u003c?php\r\n\t\r\n\tclass network\r\n\t{\r\n\t\tpublic $id;\r\n\t\tpublic $info;\r\n\t\tpublic $is_private;\r\n\t\tpublic $is_public;\r\n\t\t\r\n\t\tpublic function __construct()\r\n\t\t{\r\n\t\t\t$this-\u003eid\t= FALSE;\r\n\t\t\t$this-\u003eC\t= new stdClass;\r\n\t\t\t$this-\u003einfo\t= new stdClass;\r\n\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r\n\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r\n\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r\n\t\t}\r\n\t\t\r\n\t\tpublic function LOAD()\r\n\t\t{\r\n\t\t\tif( $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$this-\u003eload_network_settings();\r\n\t\t\t$this-\u003einfo\t= (object) array(\r\n\t\t\t\t'id'\t=\u003e 1,\r\n\t\t\t);\r\n\t\t\t$this-\u003eis_private\t= FALSE;\r\n\t\t\t$this-\u003eis_public\t= TRUE;\r\n\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r\n\t\t\treturn $this-\u003eid;\r\n\t\t}\r\npublic function get_latest_dogum($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$tarih = pdate(\"m-d\", time());\r\n\t\t\t\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n\t\t\r\n\t\tpublic function load_network_settings()\r\n\t\t{\r\n\t\t\t$db\t= \u0026$this-\u003edb1;\r\n\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r\n\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r\n\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r\n\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r\n\t\t\t}\r\n\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r\n\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r\n\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r\n\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r\n\t\t\t\r\n\t\t\t$current_language\t= new stdClass;\r\n\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r\n\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r\n\t\t\t\r\n\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r\n\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r\n\t\t\t}\r\n\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r\n\t\t\t\r\n\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r\n\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r\n\t\t\t}\r\n\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($uname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" AND active=1 LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! is_valid_email($email) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r\n\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$uid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND active=1 LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$uid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r\n\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r\n\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eage\t= '';\r\n\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r\n\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r\n\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r\n\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r\n\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r\n\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r\n\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r\n\t\t\t\t\t\t\t$o-\u003eage\t--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r\n\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r\n\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r\n\t\t\t\t$o-\u003euser_details\t= FALSE;\r\n\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r\n\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r\n\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r\n\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t//////////////////////// User Like ///////////////////////////\r\n\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003elikers\t\t= array();\r\n\t\t\t$data-\u003elike_users\t= array();\r\n\r\n\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\n///////////////////////// User Like /////////////////////////////\r\n\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$uid\t= intval($uid);\r\n\t\t\tif( 0 == $uid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= new stdClass;\r\n\t\t\t$data-\u003efollowers\t\t= array();\r\n\t\t\t$data-\u003efollow_users\t= array();\r\n\t\t\t$data-\u003efollow_groups\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\tpublic function get_mostactive_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$days\t= 5;\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_latest_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r\n\t\t\t$data\t= $cache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ORDER BY id DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_online_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r\n\t\t\t$data\t= $cache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$num\t= 20;\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT '.$num);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( $obj-\u003elastclick_date \u003c time()-30*60 ) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t$data[]\t= intval($obj-\u003eid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( empty($gname) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r\n\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$gid\t= FALSE;\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r\n\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$gid\t= intval($o-\u003eid);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\t\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r\n\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r\n\t\t\t\tif( empty($o-\u003eavatar) ) {\r\n\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$gid\t= intval($gid);\r\n\t\t\tif( 0 == $gid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r\n\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r\n\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r\n\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r\n\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey] = $o;\r\n\t\t\t\treturn $o;\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003edel($cachekey);\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$loaded[$cachekey] = $data;\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\tif($g-\u003eis_public == 0) {\r\n\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 AND is_network_admin=1', FALSE);\r\n\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r\n\t\t\t\t}\r\n\t\t\t\t$u_in\t= array_unique($u_in);\r\n\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r\n\t\t\t}\r\n\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_last_post_id()\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn array_slice($data, 0, $count);\r\n\t\t\t}\r\n\t\t\t// this is to avoid running the query below multiple times at once \r\n\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r\n\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r\n\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r\n\t\t\t// \r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r\n\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( ! preg_match_all('/\\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\\-_]{1,50})/iu', stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array();\r\n\t\t\t\tforeach($matches[1] as $tg) {\r\n\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r\n\t\t\t\t}\r\n\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r\n\t\t\t\t$weight\t= 1;\r\n\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r\n\t\t\t\t\t$weight\t= 100;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r\n\t\t\t\t\t$weigth\t= 20;\r\n\t\t\t\t}\r\n\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r\n\t\t\t\t\t$weight\t= 5;\r\n\t\t\t\t}\r\n\t\t\t\tforeach($thisposttags as $tg) {\r\n\t\t\t\t\tif( ! isset($data[$tg]) ) {\r\n\t\t\t\t\t\t$data[$tg]\t= 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$data[$tg]\t+= $weight;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tarsort($data);\r\n\t\t\t$data\t= array_keys($data);\r\n\t\t\t$data\t= array_slice($data, 0, 50);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r\n\t\t\treturn array_slice($data, 0, $count);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r\n\t\t\t\tset_user_default_notification_rules($user_id);\r\n\t\t\t}\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r\n\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\tunset($obj-\u003euser_id);\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $obj;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r\n\t\t{\r\n\t\t\t$id\t= intval($id);\r\n\t\t\tstatic $loaded = array();\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r\n\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $loaded[$cachekey];\r\n\t\t\t}\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r\n\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r\n\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\t\t$loaded[$cachekey]\t= $data;\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\treturn FALSE;\r\n\t\t}\r\n\t\t\r\n\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r\n\t\t{\r\n\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r\n\t\t\t\r\n\t\t\tglobal $C;\r\n\t\t\t$to_user_id\t\t= intval($to_user_id);\r\n\t\t\t$in_group_id\t= intval($in_group_id);\r\n\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r\n\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r\n\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r\n\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r\n\t\t\t\t\tforeach($lang_params as \u0026$p) {\r\n\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$data\t= (object) array (\r\n\t\t\t\t'type'\t\t=\u003e 'notif',\r\n\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r\n\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r\n\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r\n\t\t\t\t'lang_params'\t=\u003e $lang_params,\r\n\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r\n\t\t\t);\r\n\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r\n\t\t\tif( $to_user_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r\n\t\t\t\t$this-\u003eset_dashboard_tabstate($to_user_id, 'system', 1);\r\n\t\t\t}\r\n\t\t\telseif( $in_group_id \u003e 0 ) {\r\n\t\t\t\tif( $if_exists_action != 'ignore' ) {\r\n\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r\n\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r\n\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r\n\t\t{\r\n\t\t\tglobal $C, $D, $page;\r\n\t\t\tif( $inD ) {\r\n\t\t\t\tforeach($inD as $k=\u003e$v) {\r\n\t\t\t\t\t$D-\u003e$k\t= $v;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r\n\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t$D-\u003epage\t= \u0026 $page;\r\n\t\t\t$D-\u003euser\t= $to_user;\r\n\t\t\t$D-\u003esubject\t\t= $subject;\r\n\t\t\t$D-\u003emessage_txt\t= $message_txt;\r\n\t\t\t$D-\u003emessage_html\t= $message_html;\r\n\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r\n\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r\n\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r\n\t\t\t}\r\n\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r\n\t\t\t\t$siteurl\t= $m[1].$m[3];\r\n\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r\n\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r\n\t\t\t}\r\n\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r\n\t\t}\r\n\t\t\r\n\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\tif( is_array($tabs) ) {\r\n\t\t\t\t$result\t= array();\r\n\t\t\t\t$tmp\t= array();\r\n\t\t\t\tforeach($tabs as $tab) {\r\n\t\t\t\t\t$result[$tab]\t= 0;\r\n\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r\n\t\t\t\t}\r\n\t\t\t\t$tmp\t= implode(', ', $tmp);\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs), FALSE);\r\n\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r\n\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r\n\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\t$result\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r\n\t\t\t\tif( $result \u003e 99 ) {\r\n\t\t\t\t\t$result\t= '99+';\r\n\t\t\t\t}\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function set_dashboard_tabstate($user_id, $tab, $withnum=0)\r\n\t\t{\r\n\t\t\t$user_id\t= intval($user_id);\r\n\t\t\t$withnum\t= intval($withnum);\r\n\t\t\t$currnum\t= $this-\u003eget_dashboard_tabstate($user_id, $tab);\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003c=0 ) {\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum==0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum==0 ) {\r\n\t\t\t\t$this-\u003ereset_dashboard_tabstate($user_id, $tab);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t\tif( $currnum\u003e0 \u0026\u0026 $withnum\u003e0 ) {\r\n\t\t\t\t$withnum\t+= $currnum;\r\n\t\t\t\t$this-\u003edb2-\u003equery('REPLACE INTO users_dashboard_tabs SET user_id=\"'.$user_id.'\", tab=\"'.$this-\u003edb2-\u003ee($tab).'\", state=\"1\", newposts=\"'.$withnum.'\" ', FALSE);\r\n\t\t\t\treturn TRUE;\r\n\t\t\t}\r\n\t\t}\r\n\t\tpublic function reset_dashboard_tabstate($user_id, $tab)\r\n\t\t{\r\n\t\t\t$this-\u003edb2-\u003equery('DELETE FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tab).'\" ', FALSE);\r\n\t\t\treturn TRUE;\r\n\t\t}\r\npublic function get_mostcommenting_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommenting_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(*) AS c FROM posts_comments WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euser_id);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euser_id]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostcommented_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostcommented_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT posts.user_id AS uid, COUNT(posts_comments.id) AS c FROM posts, posts_comments WHERE posts.user_id=posts_comments.user_id AND posts_comments.post_id=posts.id AND posts.user_id\u003c\u003e0 AND posts_comments.user_id\u003c\u003e0 GROUP BY posts.user_id ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003euid);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003euid]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_followers AS c FROM users WHERE num_followers \u003e 0 ORDER BY num_followers DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowing_users($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mfollowing_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT who, COUNT(*) AS c FROM users_followed GROUP BY who ORDER BY c DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$usr = $this-\u003eget_user_by_id($obj-\u003ewho);\r\n\t\t\t\tif( !$usr ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003ewho]\t= array($usr-\u003eusername, $usr-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostfollowed_groups($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostfollowed_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, groupname, avatar, num_followers AS c FROM groups WHERE num_followers\u003e0 ORDER BY num_followers DESC LIMIT 10');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003egroupname, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\r\n\t\t\treturn $data;\r\n\t\t}\r\n\t\tpublic function get_mostactive_groups($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_groupz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT group_id, COUNT(*) AS c FROM posts WHERE user_id\u003c\u003e0 AND group_id\u003c\u003e0 AND api_id\u003c\u003e2 AND api_id\u003c\u003e6 GROUP BY group_id ORDER BY c DESC LIMIT 10');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\t$g = $this-\u003eget_group_by_id($obj-\u003egroup_id);\r\n\t\t\t\tif( !$g ){\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003egroup_id]\t= array($g-\u003egroupname, $g-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\npublic function get_mostactive_userss($force_refresh=FALSE)\r\n\t\t{\r\n\t\t\tif( ! $this-\u003eid ) {\r\n\t\t\t\treturn FALSE;\r\n\t\t\t}\r\n\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_userz';\r\n\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r\n\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r\n\t\t\t\treturn $data;\r\n\t\t\t}\r\n\t\t\t$data\t= array();\r\n\t\t\t$this-\u003edb2-\u003equery('SELECT id, username, avatar, num_posts AS c FROM users WHERE num_posts \u003e 0 ORDER BY num_posts DESC LIMIT 22');\r\n\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r\n\t\t\t\tif( empty($obj-\u003eavatar) ){\r\n\t\t\t\t\t$obj-\u003eavatar = $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r\n\t\t\t\t}\r\n\t\t\t\t$data[$obj-\u003eid]\t= array($obj-\u003eusername, $obj-\u003eavatar, $obj-\u003ec);\r\n\t\t\t}\r\n\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r\n\t\t\treturn $data;\r\n\t\t}\r\n\r\npublic function get_user_num_comments($fid)\r\n\r\n{\r\n $nums_q = $this-\u003edb2-\u003equery('SELECT id FROM posts_comments WHERE user_id=\"'.$fid.'\"' , FALSE);\r\n $num_com = $this-\u003edb2-\u003enum_rows($nums_q);\r\n\r\nreturn $num_com;\r\n\r\n}\r\n\t}\r\n\t\r\n?\u003e","expires":null,"isPrivate":false,"collaborators":[],"createdAt":"2015-04-18T21:43:45.666Z","updatedAt":"2024-11-27T11:28:00.860Z","permission":"view","user":null,"localTime":1732706880900,"rows":[{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\u003c?php\r","type":"equal"}],"line":1},"right":{"chunks":[{"value":"\u003c?php\r","type":"equal"}],"line":1}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\r","type":"equal"}],"line":2},"right":{"chunks":[{"value":"\t\r","type":"equal"}],"line":2}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\tclass network\r","type":"equal"}],"line":3},"right":{"chunks":[{"value":"\tclass network\r","type":"equal"}],"line":3}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t{\r","type":"equal"}],"line":4},"right":{"chunks":[{"value":"\t{\r","type":"equal"}],"line":4}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $id;\r","type":"equal"}],"line":5},"right":{"chunks":[{"value":"\t\tpublic $id;\r","type":"equal"}],"line":5}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $info;\r","type":"equal"}],"line":6},"right":{"chunks":[{"value":"\t\tpublic $info;\r","type":"equal"}],"line":6}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $is_private;\r","type":"equal"}],"line":7},"right":{"chunks":[{"value":"\t\tpublic $is_private;\r","type":"equal"}],"line":7}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic $is_public;\r","type":"equal"}],"line":8},"right":{"chunks":[{"value":"\t\tpublic $is_public;\r","type":"equal"}],"line":8}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":9},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":9}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function __construct()\r","type":"equal"}],"line":10},"right":{"chunks":[{"value":"\t\tpublic function __construct()\r","type":"equal"}],"line":10}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":11},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":11}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= FALSE;\r","type":"equal"}],"line":12},"right":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= FALSE;\r","type":"equal"}],"line":12}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eC\t= new stdClass;\r","type":"equal"}],"line":13},"right":{"chunks":[{"value":"\t\t\t$this-\u003eC\t= new stdClass;\r","type":"equal"}],"line":13}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= new stdClass;\r","type":"equal"}],"line":14},"right":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= new stdClass;\r","type":"equal"}],"line":14}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r","type":"equal"}],"line":15},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache\t= \u0026 $GLOBALS['cache'];\r","type":"equal"}],"line":15}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r","type":"equal"}],"line":16},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb1\t\t= \u0026 $GLOBALS['db1'];\r","type":"equal"}],"line":16}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r","type":"equal"}],"line":17},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2\t\t= \u0026 $GLOBALS['db2'];\r","type":"equal"}],"line":17}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":18},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":18}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":19},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":19}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function LOAD()\r","type":"equal"}],"line":20},"right":{"chunks":[{"value":"\t\tpublic function LOAD()\r","type":"equal"}],"line":20}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":21},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":21}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $this-\u003eid ) {\r","type":"equal"}],"line":22},"right":{"chunks":[{"value":"\t\t\tif( $this-\u003eid ) {\r","type":"equal"}],"line":22}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":23},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":23}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":24},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":24}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eload_network_settings();\r","type":"equal"}],"line":25},"right":{"chunks":[{"value":"\t\t\t$this-\u003eload_network_settings();\r","type":"equal"}],"line":25}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= (object) array(\r","type":"equal"}],"line":26},"right":{"chunks":[{"value":"\t\t\t$this-\u003einfo\t= (object) array(\r","type":"equal"}],"line":26}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'id'\t=\u003e 1,\r","type":"equal"}],"line":27},"right":{"chunks":[{"value":"\t\t\t\t'id'\t=\u003e 1,\r","type":"equal"}],"line":27}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":28},"right":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":28}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eis_private\t= FALSE;\r","type":"equal"}],"line":29},"right":{"chunks":[{"value":"\t\t\t$this-\u003eis_private\t= FALSE;\r","type":"equal"}],"line":29}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eis_public\t= TRUE;\r","type":"equal"}],"line":30},"right":{"chunks":[{"value":"\t\t\t$this-\u003eis_public\t= TRUE;\r","type":"equal"}],"line":30}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r","type":"equal"}],"line":31},"right":{"chunks":[{"value":"\t\t\t$this-\u003eid\t= $this-\u003einfo-\u003eid;\r","type":"equal"}],"line":31}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $this-\u003eid;\r","type":"equal"}],"line":32},"right":{"chunks":[{"value":"\t\t\treturn $this-\u003eid;\r","type":"equal"}],"line":32}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":33},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":33}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"public function get_latest_dogum($force_refresh=FALSE)\r","type":"equal"}],"line":34},"right":{"chunks":[{"value":"public function get_latest_dogum($force_refresh=FALSE)\r","type":"equal"}],"line":34}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":35},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":35}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":36},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":36}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":37},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":37}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":38},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":38}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":39},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":39}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_dogum_userz';\r","type":"remove"}],"line":40},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":41},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"remove"}],"line":42},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"remove"}],"line":43},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"remove"}],"line":44},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":45},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":40}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"40;\r","type":"remove"}],"line":46},"right":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"20;\r","type":"insert"}],"line":41}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$tarih = pdate(\"m-d\", time());\r","type":"equal"}],"line":47},"right":{"chunks":[{"value":"\t\t\t$tarih = pdate(\"m-d\", time());\r","type":"equal"}],"line":42}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":48},"right":{"chunks":[{"value":"\t\t\t\r","type":"insert"}],"line":43}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":49},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users where birthdate LIKE \"%'.$tarih.'\" ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":44}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":50},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":45}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":51},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":46}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":52},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":47}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"remove"}],"line":53},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":54},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":48}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":55},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":49}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[]},"right":{"chunks":[{"value":"\r","type":"insert"}],"line":50}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":56},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":51}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function load_network_settings()\r","type":"equal"}],"line":57},"right":{"chunks":[{"value":"\t\tpublic function load_network_settings()\r","type":"equal"}],"line":52}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":58},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":53}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$db\t= \u0026$this-\u003edb1;\r","type":"equal"}],"line":59},"right":{"chunks":[{"value":"\t\t\t$db\t= \u0026$this-\u003edb1;\r","type":"equal"}],"line":54}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r","type":"equal"}],"line":60},"right":{"chunks":[{"value":"\t\t\t$r\t= $db-\u003equery('SELECT * FROM settings', FALSE);\r","type":"equal"}],"line":55}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r","type":"equal"}],"line":61},"right":{"chunks":[{"value":"\t\t\twhile($obj = $db-\u003efetch_object($r)) {\r","type":"equal"}],"line":56}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r","type":"equal"}],"line":62},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003eC-\u003e{$obj-\u003eword}\t= stripslashes($obj-\u003evalue);\r","type":"equal"}],"line":57}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":63},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":58}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":64},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":59}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":65},"right":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":60}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r","type":"equal"}],"line":66},"right":{"chunks":[{"value":"\t\t\tforeach($this-\u003eC as $k=\u003e$v) {\r","type":"equal"}],"line":61}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r","type":"equal"}],"line":67},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003e$k\t= \u0026 $this-\u003eC-\u003e$k;\r","type":"equal"}],"line":62}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":68},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":63}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r","type":"equal"}],"line":69},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_LINK_DISABLED) ) { $C-\u003eATTACH_LINK_DISABLED = 0; }\r","type":"equal"}],"line":64}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r","type":"equal"}],"line":70},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_FILE_DISABLED) ) { $C-\u003eATTACH_FILE_DISABLED = 0; }\r","type":"equal"}],"line":65}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r","type":"equal"}],"line":71},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_IMAGE_DISABLED) ) { $C-\u003eATTACH_IMAGE_DISABLED = 0; }\r","type":"equal"}],"line":66}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r","type":"equal"}],"line":72},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eATTACH_VIDEO_DISABLED) ) { $C-\u003eATTACH_VIDEO_DISABLED = 0; }\r","type":"equal"}],"line":67}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r","type":"equal"}],"line":73},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_COMPANY) ) { $C-\u003eHDR_SHOW_COMPANY = 1; }\r","type":"equal"}],"line":68}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r","type":"equal"}],"line":74},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_LOGO) ) { $C-\u003eHDR_SHOW_LOGO = 1; }\r","type":"equal"}],"line":69}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r","type":"equal"}],"line":75},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_LOGO) ) { $C-\u003eHDR_CUSTOM_LOGO = ''; }\r","type":"equal"}],"line":70}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r","type":"equal"}],"line":76},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_SHOW_FAVICON) ) { $C-\u003eHDR_SHOW_FAVICON = 1; }\r","type":"equal"}],"line":71}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r","type":"equal"}],"line":77},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eHDR_CUSTOM_FAVICON) ) { $C-\u003eHDR_CUSTOM_FAVICON = ''; }\r","type":"equal"}],"line":72}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r","type":"equal"}],"line":78},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eMOBI_DISABLED) ) { $C-\u003eMOBI_DISABLED = 0; }\r","type":"equal"}],"line":73}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":79},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":74}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$current_language\t= new stdClass;\r","type":"equal"}],"line":80},"right":{"chunks":[{"value":"\t\t\t$current_language\t= new stdClass;\r","type":"equal"}],"line":75}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r","type":"equal"}],"line":81},"right":{"chunks":[{"value":"\t\t\tinclude($C-\u003eINCPATH.'languages/'.$C-\u003eLANGUAGE.'/language.php');\r","type":"equal"}],"line":76}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r","type":"equal"}],"line":82},"right":{"chunks":[{"value":"\t\t\tsetlocale(LC_ALL, $current_language-\u003ephp_locale);\r","type":"equal"}],"line":77}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":83},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":78}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r","type":"equal"}],"line":84},"right":{"chunks":[{"value":"\t\t\tif( ! isset($C-\u003eDEF_TIMEZONE) ) {\r","type":"equal"}],"line":79}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r","type":"equal"}],"line":85},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003eDEF_TIMEZONE\t= $current_language-\u003ephp_timezone;\r","type":"equal"}],"line":80}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":86},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":81}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r","type":"equal"}],"line":87},"right":{"chunks":[{"value":"\t\t\tdate_default_timezone_set($C-\u003eDEF_TIMEZONE);\r","type":"equal"}],"line":82}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":88},"right":{"chunks":[{"value":"\t\t\t\r","type":"equal"}],"line":83}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r","type":"equal"}],"line":89},"right":{"chunks":[{"value":"\t\t\tif( !isset($C-\u003eSITE_TITLE) || empty($C-\u003eSITE_TITLE) ) {\r","type":"equal"}],"line":84}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r","type":"equal"}],"line":90},"right":{"chunks":[{"value":"\t\t\t\t$C-\u003eSITE_TITLE\t= 'Sharetronix';\r","type":"equal"}],"line":85}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":91},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":86}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r","type":"equal"}],"line":92},"right":{"chunks":[{"value":"\t\t\t$C-\u003eOUTSIDE_SITE_TITLE\t= $C-\u003eSITE_TITLE;\r","type":"equal"}],"line":87}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":93},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":88}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":94},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":89}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":95},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_username($uname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":90}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":96},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":91}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":97},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":92}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":98},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":93}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":99},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":94}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($uname) ) {\r","type":"equal"}],"line":100},"right":{"chunks":[{"value":"\t\t\tif( empty($uname) ) {\r","type":"equal"}],"line":95}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":101},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":96}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":102},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":97}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r","type":"equal"}],"line":103},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',username:'.strtolower($uname);\r","type":"equal"}],"line":98}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":104},"right":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":99}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":105},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":100}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":106},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":101}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":107},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":102}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":108},"right":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":103}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" ","type":"equal"},{"value":"LIMIT 1', FALSE);\r","type":"equal"}],"line":109},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE username=\"'.$this-\u003edb2-\u003eescape($uname).'\" ","type":"equal"},{"value":"AND active=1 ","type":"insert"},{"value":"LIMIT 1', FALSE);\r","type":"equal"}],"line":104}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":110},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":105}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":111},"right":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":106}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":112},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":107}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":113},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":108}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":114},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":109}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":115},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":110}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":116},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":111}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":117},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":112}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":118},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":113}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":119},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_email($email, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":114}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":120},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":115}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":121},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":116}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":122},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":117}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":123},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":118}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! is_valid_email($email) ) {\r","type":"equal"}],"line":124},"right":{"chunks":[{"value":"\t\t\tif( ! is_valid_email($email) ) {\r","type":"equal"}],"line":119}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":125},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":120}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":126},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":121}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r","type":"equal"}],"line":127},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usermail:'.strtolower($email);\r","type":"equal"}],"line":122}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":128},"right":{"chunks":[{"value":"\t\t\t$uid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":123}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":129},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$uid \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":124}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":130},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":125}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":131},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":126}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":132},"right":{"chunks":[{"value":"\t\t\t$uid\t= FALSE;\r","type":"equal"}],"line":127}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND ","type":"equal"},{"value":" sus_time\u003c\"'.time().'\" ","type":"remove"},{"value":" LIMIT 1', FALSE);\r","type":"equal"}],"line":133},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE email=\"'.$this-\u003edb2-\u003eescape($email).'\" AND ","type":"equal"},{"value":"active=1","type":"insert"},{"value":" LIMIT 1', FALSE);\r","type":"equal"}],"line":128}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":134},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":129}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":135},"right":{"chunks":[{"value":"\t\t\t\t$uid\t= intval($o-\u003eid);\r","type":"equal"}],"line":130}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":136},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $uid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":131}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":137},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $uid : $this-\u003eget_user_by_id($uid);\r","type":"equal"}],"line":132}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":138},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":133}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":139},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":134}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":140},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":135}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":141},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":136}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":142},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":137}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":143},"right":{"chunks":[{"value":"\t\tpublic function get_user_by_id($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":138}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":144},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":139}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":145},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":140}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":146},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":141}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":147},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":142}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":148},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":143}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":149},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":144}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":150},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":145}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":151},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":146}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":152},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":147}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r","type":"equal"}],"line":153},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userid:'.$uid;\r","type":"equal"}],"line":148}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":154},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":149}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":155},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":150}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":156},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":151}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":157},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":152}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":158},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":153}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":159},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":154}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":160},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":155}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":161},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":156}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":162},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM users WHERE id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":157}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":163},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":158}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r","type":"equal"}],"line":164},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eactive\t\t= intval($o-\u003eactive);\r","type":"equal"}],"line":159}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r","type":"equal"}],"line":165},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003efullname\t= stripslashes($o-\u003efullname);\r","type":"equal"}],"line":160}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":166},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":161}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r","type":"equal"}],"line":167},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= trim(stripslashes($o-\u003etags));\r","type":"equal"}],"line":162}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r","type":"equal"}],"line":168},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etags\t\t= empty($o-\u003etags) ? array() : explode(', ', $o-\u003etags);\r","type":"equal"}],"line":163}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":169},"right":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":164}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t\tif($o-\u003egender=='m'){\r","type":"remove"}],"line":170},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\r","type":"insert"}],"line":165}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_MUSER;\r","type":"remove"}],"line":171},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"}elseif($o-\u003egender=='f'){\r","type":"remove"}],"line":172},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_FUSER;\r","type":"remove"}],"line":173},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"}else{\t\t\t\t\r","type":"remove"}],"line":174},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_USER;\t\r","type":"remove"}],"line":175},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"}\t\r","type":"remove"}],"line":176},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":177},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":166}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eage\t= '';\r","type":"equal"}],"line":178},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eage\t= '';\r","type":"equal"}],"line":167}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r","type":"equal"}],"line":179},"right":{"chunks":[{"value":"\t\t\t\t$bd_day\t= intval( substr($o-\u003ebirthdate, 8, 2) );\r","type":"equal"}],"line":168}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r","type":"equal"}],"line":180},"right":{"chunks":[{"value":"\t\t\t\t$bd_month\t= intval( substr($o-\u003ebirthdate, 5, 2) );\r","type":"equal"}],"line":169}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r","type":"equal"}],"line":181},"right":{"chunks":[{"value":"\t\t\t\t$bd_year\t= intval( substr($o-\u003ebirthdate, 0, 4) );\r","type":"equal"}],"line":170}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r","type":"equal"}],"line":182},"right":{"chunks":[{"value":"\t\t\t\tif( $bd_day\u003e0 \u0026\u0026 $bd_month\u003e0 \u0026\u0026 $bd_year\u003e0 ) {\r","type":"equal"}],"line":171}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r","type":"equal"}],"line":183},"right":{"chunks":[{"value":"\t\t\t\t\tif( date('Y') \u003e $bd_year ) {\r","type":"equal"}],"line":172}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r","type":"equal"}],"line":184},"right":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003eage\t= date('Y') - $bd_year;\r","type":"equal"}],"line":173}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r","type":"equal"}],"line":185},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $bd_month\u003edate('m') || ($bd_month==date('m') \u0026\u0026 $bd_day\u003edate('d')) ) {\r","type":"equal"}],"line":174}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$o-\u003eage\t--;\r","type":"equal"}],"line":186},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$o-\u003eage\t--;\r","type":"equal"}],"line":175}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":187},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":176}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":188},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":177}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":189},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":178}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r","type":"equal"}],"line":190},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eposition\t= stripslashes($o-\u003eposition);\r","type":"equal"}],"line":179}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r","type":"equal"}],"line":191},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003elocation\t= stripslashes($o-\u003elocation);\r","type":"equal"}],"line":180}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r","type":"equal"}],"line":192},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003enetwork_id\t= $this-\u003eid;\r","type":"equal"}],"line":181}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003euser_details\t= FALSE;\r","type":"equal"}],"line":193},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003euser_details\t= FALSE;\r","type":"equal"}],"line":182}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":194},"right":{"chunks":[{"value":"\t\t\t\t$rr\t= $this-\u003edb2-\u003equery('SELECT * FROM users_details WHERE user_id=\"'.$uid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":183}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r","type":"equal"}],"line":195},"right":{"chunks":[{"value":"\t\t\t\tif( $ud = $this-\u003edb2-\u003efetch_object($rr) ) {\r","type":"equal"}],"line":184}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r","type":"equal"}],"line":196},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003euser_details\t= new stdClass;\r","type":"equal"}],"line":185}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r","type":"equal"}],"line":197},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($ud as $k=\u003e$v) {\r","type":"equal"}],"line":186}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r","type":"equal"}],"line":198},"right":{"chunks":[{"value":"\t\t\t\t\t\t$o-\u003euser_details-\u003e$k\t= stripslashes($v);\r","type":"equal"}],"line":187}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":199},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":188}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":200},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":189}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":201},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":190}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":202},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":191}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":203},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":192}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":204},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":193}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":205},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":194}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":206},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":195}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":207},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":196}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\r","type":"remove"}],"line":208},"right":{"chunks":[{"value":"\t\t////////////////////////","type":"insert"},{"value":" User Like ///////////////////////////\r","type":"equal"}],"line":197}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":209},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"////////////////////////","type":"remove"},{"value":" User Like ///////////////////////////\r","type":"equal"}],"line":210},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r","type":"equal"}],"line":211},"right":{"chunks":[{"value":"\t\tpublic function get_user_likes($uid, $force_refresh=FALSE, $type = FALSE)\r","type":"equal"}],"line":198}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":212},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":199}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":213},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":200}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":214},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":201}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":215},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":202}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":216},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":203}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":217},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":204}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":218},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":205}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":219},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":206}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":220},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":207}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r","type":"equal"}],"line":221},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userlikes:'.$uid.($type ? ',type:'.$type : '');\r","type":"equal"}],"line":208}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":222},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":209}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":223},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":210}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":224},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":211}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":225},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":212}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":226},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":213}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":227},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":214}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":228},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":215}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":229},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":216}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":230},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":217}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":231},"right":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":218}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003elikers\t\t= array();\r","type":"equal"}],"line":232},"right":{"chunks":[{"value":"\t\t\t$data-\u003elikers\t\t= array();\r","type":"equal"}],"line":219}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003elike_users\t= array();\r","type":"equal"}],"line":233},"right":{"chunks":[{"value":"\t\t\t$data-\u003elike_users\t= array();\r","type":"equal"}],"line":220}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":234},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":221}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r","type":"equal"}],"line":235},"right":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'hislikers') || ($type === FALSE) ){\r","type":"equal"}],"line":222}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":236},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_liked WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":223}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":237},"right":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":224}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":238},"right":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elikers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":225}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":239},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":226}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":240},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":227}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r","type":"equal"}],"line":241},"right":{"chunks":[{"value":"\t\t\tif( ($type \u0026\u0026 $type == 'helikes') || ($type === FALSE) ){\r","type":"equal"}],"line":228}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":242},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_liked WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":229}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":243},"right":{"chunks":[{"value":"\t\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":230}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":244},"right":{"chunks":[{"value":"\t\t\t\t\t$data-\u003elike_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":231}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":245},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":232}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":246},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":233}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":247},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":234}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":248},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":235}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":249},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":236}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":250},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":237}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":251},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":238}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"equal"}],"line":252},"right":{"chunks":[{"value":"\r","type":"equal"}],"line":239}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":253},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"///////////////////////// User Like /////////////////////////////\r","type":"equal"}],"line":254},"right":{"chunks":[{"value":"///////////////////////// User Like /////////////////////////////\r","type":"equal"}],"line":240}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":255},"right":{"chunks":[]}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":256},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":257},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":258},"right":{"chunks":[{"value":"\t\tpublic function get_user_follows($uid, $force_refresh=FALSE)\r","type":"equal"}],"line":241}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":259},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":242}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":260},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":243}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":261},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":244}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":262},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":245}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":263},"right":{"chunks":[{"value":"\t\t\t$uid\t= intval($uid);\r","type":"equal"}],"line":246}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":264},"right":{"chunks":[{"value":"\t\t\tif( 0 == $uid ) {\r","type":"equal"}],"line":247}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":265},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":248}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":266},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":249}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":267},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":250}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r","type":"equal"}],"line":268},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',userfollows:'.$uid;\r","type":"equal"}],"line":251}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":269},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":252}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":270},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":253}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":271},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":254}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":272},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":255}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":273},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":256}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":274},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":257}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":275},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":258}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":276},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":259}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":277},"right":{"chunks":[{"value":"\t\t\t$data\t= new stdClass;\r","type":"equal"}],"line":260}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollowers\t\t= array();\r","type":"equal"}],"line":278},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollowers\t\t= array();\r","type":"equal"}],"line":261}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollow_users\t= array();\r","type":"equal"}],"line":279},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollow_users\t= array();\r","type":"equal"}],"line":262}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data-\u003efollow_groups\t= array();\r","type":"equal"}],"line":280},"right":{"chunks":[{"value":"\t\t\t$data-\u003efollow_groups\t= array();\r","type":"equal"}],"line":263}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":281},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT who, whom_from_postid FROM users_followed WHERE whom=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":264}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":282},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":265}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":283},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollowers[intval($o-\u003ewho)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":266}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":284},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":267}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":285},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT whom, whom_from_postid FROM users_followed WHERE who=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":268}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":286},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":269}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":287},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_users[intval($o-\u003ewhom)]\t= $o-\u003ewhom_from_postid;\r","type":"equal"}],"line":270}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":288},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":271}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":289},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT group_id, group_from_postid FROM groups_followed WHERE user_id=\"'.$uid.'\" ORDER BY id DESC', FALSE);\r","type":"equal"}],"line":272}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":290},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":273}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r","type":"equal"}],"line":291},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003efollow_groups[intval($o-\u003egroup_id)]\t= $o-\u003egroup_from_postid;\r","type":"equal"}],"line":274}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":292},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":275}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":293},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":276}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":294},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":277}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":295},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":278}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":296},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":279}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":297},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":280}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\tpublic","type":"remove"},{"value":" function get_mostactive_users($force_refresh=FALSE)\r","type":"equal"}],"line":298},"right":{"chunks":[{"value":"\tpublic","type":"insert"},{"value":" function get_mostactive_users($force_refresh=FALSE)\r","type":"equal"}],"line":281}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":299},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":282}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":300},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":283}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":301},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":284}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":302},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":285}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r","type":"equal"}],"line":303},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',mostactive_userz';\r","type":"equal"}],"line":286}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":304},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":287}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":305},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":288}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":306},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":289}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":307},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":290}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":308},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":291}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$days\t= 5;\r","type":"equal"}],"line":309},"right":{"chunks":[{"value":"\t\t\t$days\t= 5;\r","type":"equal"}],"line":292}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":310},"right":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":293}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r","type":"equal"}],"line":311},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT user_id, COUNT(id) AS c FROM posts WHERE user_id\u003c\u003e0 GROUP BY user_id ORDER BY c DESC LIMIT '.$num);\r","type":"equal"}],"line":294}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":312},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":295}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":313},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":296}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":314},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":297}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":315},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":298}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":316},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":299}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":317},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":300}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":318},"right":{"chunks":[]}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\r","type":"remove"}],"line":319},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":320},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":301}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_latest_users($force_refresh=FALSE)\r","type":"equal"}],"line":321},"right":{"chunks":[{"value":"\t\tpublic function get_latest_users($force_refresh=FALSE)\r","type":"equal"}],"line":302}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":322},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":303}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":323},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":304}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":324},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":305}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":325},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":306}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r","type":"equal"}],"line":326},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',latest_userz';\r","type":"equal"}],"line":307}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":327},"right":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$cache-\u003eget($cachekey);\r","type":"insert"}],"line":308}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":328},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":309}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":329},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":310}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":330},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":311}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":331},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":312}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":332},"right":{"chunks":[{"value":"\t\t\t$num\t= 20;\r","type":"equal"}],"line":313}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ","type":"equal"},{"value":" OR sus_time\u003c\"'.time().'\" ","type":"remove"},{"value":"ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":333},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id FROM users WHERE active=1 ","type":"equal"},{"value":"ORDER BY id DESC LIMIT '.$num);\r","type":"equal"}],"line":314}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":334},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":315}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":335},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003eid);\r","type":"equal"}],"line":316}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":336},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":317}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":337},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":318}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":338},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":319}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":339},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":320}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":340},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":321}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\tpublic","type":"remove"},{"value":" function get_online_users($force_refresh=FALSE)\r","type":"equal"}],"line":341},"right":{"chunks":[{"value":"\t\tpublic","type":"insert"},{"value":" function get_online_users($force_refresh=FALSE)\r","type":"equal"}],"line":322}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":342},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":323}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":343},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":324}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":344},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":325}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":345},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":326}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r","type":"equal"}],"line":346},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',online_userz';\r","type":"equal"}],"line":327}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$this-\u003ecache-\u003eget($cachekey);\r","type":"remove"}],"line":347},"right":{"chunks":[{"value":"\t\t\t$data\t= ","type":"equal"},{"value":"$cache-\u003eget($cachekey);\r","type":"insert"}],"line":328}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":348},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":329}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":349},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":330}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":350},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":331}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":351},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":332}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"30;\r","type":"remove"}],"line":352},"right":{"chunks":[{"value":"\t\t\t$num\t= ","type":"equal"},{"value":"20;\r","type":"insert"},{"value":"","type":"equal"}],"line":333}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$time\t= 15*60;\r","type":"remove"},{"value":"","type":"equal"}],"line":353},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT ","type":"equal"},{"value":"'.$num);\r","type":"insert"}],"line":334}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT id, lastclick_date FROM users WHERE active=1 ORDER BY lastclick_date DESC LIMIT ","type":"equal"},{"value":"'.($num+1));\r","type":"remove"}],"line":354},"right":{"chunks":[]}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":355},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":335}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\tif( $obj-\u003elastclick_date \u003c ","type":"equal"},{"value":"time() - $time","type":"remove"},{"value":" ) {\r","type":"equal"}],"line":356},"right":{"chunks":[{"value":"\t\t\t\tif( $obj-\u003elastclick_date \u003c ","type":"equal"},{"value":"time()-30*60","type":"insert"},{"value":" ) {\r","type":"equal"}],"line":336}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tbreak;\r","type":"equal"}],"line":357},"right":{"chunks":[{"value":"\t\t\t\t\tbreak;\r","type":"equal"}],"line":337}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":358},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":338}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= ","type":"equal"},{"value":"$this-\u003eget_user_by_id($obj-\u003eid);\r","type":"remove"}],"line":359},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= ","type":"equal"},{"value":"intval($obj-\u003eid);\r","type":"insert"}],"line":339}},{"start":true,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":360},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":340}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, $num);\r","type":"remove"}],"line":361},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"insert"}],"line":341}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset( $cachekey, $data, 10*60 );\r","type":"remove"}],"line":362},"right":{"chunks":[]}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":363},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":342}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":364},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":343}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":365},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":344}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":366},"right":{"chunks":[{"value":"\t\tpublic function get_group_by_name($gname, $force_refresh=FALSE, $return_id=FALSE)\r","type":"equal"}],"line":345}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":367},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":346}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":368},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":347}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":369},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":348}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":370},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":349}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($gname) ) {\r","type":"equal"}],"line":371},"right":{"chunks":[{"value":"\t\t\tif( empty($gname) ) {\r","type":"equal"}],"line":350}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":372},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":351}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":373},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":352}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r","type":"equal"}],"line":374},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupname:'.strtolower($gname);\r","type":"equal"}],"line":353}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":375},"right":{"chunks":[{"value":"\t\t\t$gid\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":354}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r","type":"equal"}],"line":376},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$gid \u0026\u0026 TRUE!=$gid ) {\r","type":"equal"}],"line":355}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":377},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":356}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":378},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":357}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= FALSE;\r","type":"equal"}],"line":379},"right":{"chunks":[{"value":"\t\t\t$gid\t= FALSE;\r","type":"equal"}],"line":358}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":380},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM groups WHERE groupname=\"'.$this-\u003edb2-\u003eescape($gname).'\" OR title=\"'.$this-\u003edb2-\u003eescape($gname).'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":359}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":381},"right":{"chunks":[{"value":"\t\t\tif( $o = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":360}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$gid\t= intval($o-\u003eid);\r","type":"equal"}],"line":382},"right":{"chunks":[{"value":"\t\t\t\t$gid\t= intval($o-\u003eid);\r","type":"equal"}],"line":361}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":383},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $gid, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":362}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":384},"right":{"chunks":[{"value":"\t\t\t\treturn $return_id ? $gid : $this-\u003eget_group_by_id($gid);\r","type":"equal"}],"line":363}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":385},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":364}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":386},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":365}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":387},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":366}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":388},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":367}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":389},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":368}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":390},"right":{"chunks":[{"value":"\t\tpublic function get_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":369}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":391},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":370}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":392},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":371}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":393},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":372}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":394},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":373}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":395},"right":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":374}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":396},"right":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":375}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":397},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":376}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":398},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":377}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":399},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":378}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r","type":"equal"}],"line":400},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',groupid:'.$gid;\r","type":"equal"}],"line":379}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":401},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":380}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":402},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":381}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":403},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":382}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":404},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":383}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":405},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":384}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":406},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":385}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":407},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":386}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\t\r","type":"equal"}],"line":408},"right":{"chunks":[{"value":"\t\t\t}\t\r","type":"equal"}],"line":387}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":409},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":388}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":410},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":389}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":411},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":390}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":412},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":391}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":413},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":392}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r","type":"equal"}],"line":414},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= FALSE;\r","type":"equal"}],"line":393}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":415},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eabout_me\t= stripslashes($o-\u003eabout_me);\r","type":"equal"}],"line":394}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":416},"right":{"chunks":[{"value":"\t\t\t\tif( empty($o-\u003eavatar) ) {\r","type":"equal"}],"line":395}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r","type":"equal"}],"line":417},"right":{"chunks":[{"value":"\t\t\t\t\t$o-\u003eavatar\t= $GLOBALS['C']-\u003eDEF_AVATAR_GROUP;\r","type":"equal"}],"line":396}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":418},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":397}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":419},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":398}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":420},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":399}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":421},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":400}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":422},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":401}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":423},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":402}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":424},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":403}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":425},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":404}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":426},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":405}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":427},"right":{"chunks":[{"value":"\t\tpublic function get_deleted_group_by_id($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":406}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":428},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":407}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":429},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":408}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":430},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":409}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":431},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":410}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":432},"right":{"chunks":[{"value":"\t\t\t$gid\t= intval($gid);\r","type":"equal"}],"line":411}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":433},"right":{"chunks":[{"value":"\t\t\tif( 0 == $gid ) {\r","type":"equal"}],"line":412}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":434},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":413}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":435},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":414}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":436},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":415}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r","type":"equal"}],"line":437},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',deletedgroupid:'.$gid;\r","type":"equal"}],"line":416}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":438},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":417}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":439},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":418}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":440},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":419}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":441},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":420}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":442},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":421}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":443},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":422}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":444},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":423}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":445},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":424}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":446},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT * FROM groups_deleted WHERE id=\"'.$gid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":425}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":447},"right":{"chunks":[{"value":"\t\t\tif($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":426}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":448},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003etitle\t\t= stripslashes($o-\u003etitle);\r","type":"equal"}],"line":427}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":449},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_public\t= $o-\u003eis_public==1;\r","type":"equal"}],"line":428}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":450},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_private\t= !$o-\u003eis_public;\r","type":"equal"}],"line":429}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r","type":"equal"}],"line":451},"right":{"chunks":[{"value":"\t\t\t\t$o-\u003eis_deleted\t= TRUE;\r","type":"equal"}],"line":430}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":452},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $o, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":431}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":453},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $o;\r","type":"equal"}],"line":432}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":454},"right":{"chunks":[{"value":"\t\t\t\treturn $o;\r","type":"equal"}],"line":433}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":455},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":434}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":456},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($cachekey);\r","type":"equal"}],"line":435}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":457},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":436}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":458},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":437}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":459},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":438}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":460},"right":{"chunks":[{"value":"\t\tpublic function get_group_invited_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":439}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":461},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":440}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":462},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":441}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":463},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":442}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":464},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":443}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":465},"right":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":444}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":466},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":445}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":467},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":446}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":468},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":447}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r","type":"equal"}],"line":469},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_invited_members:'.$gid;\r","type":"equal"}],"line":448}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":470},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":449}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":471},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":450}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":472},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":451}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":473},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":452}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":474},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":453}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":475},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":454}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":476},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":455}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":477},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":456}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":478},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":457}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":479},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id FROM groups_private_members WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":458}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":480},"right":{"chunks":[{"value":"\t\t\twhile($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":459}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":481},"right":{"chunks":[{"value":"\t\t\t\t$data[]\t= intval($obj-\u003euser_id);\r","type":"equal"}],"line":460}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":482},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":461}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":483},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":462}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":484},"right":{"chunks":[{"value":"\t\t\t$loaded[$cachekey] = $data;\r","type":"equal"}],"line":463}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":485},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":464}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":486},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":465}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":487},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":466}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":488},"right":{"chunks":[{"value":"\t\tpublic function get_group_members($gid, $force_refresh=FALSE)\r","type":"equal"}],"line":467}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":489},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":468}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":490},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":469}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":491},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":470}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":492},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":471}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":493},"right":{"chunks":[{"value":"\t\t\tif( ! $g = $this-\u003eget_group_by_id($gid, $force_refresh) ) {\r","type":"equal"}],"line":472}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":494},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":473}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":495},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":474}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r","type":"equal"}],"line":496},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',group_members:'.$gid;\r","type":"equal"}],"line":475}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":497},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":476}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":498},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":477}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":499},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":478}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":500},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":479}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":501},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":480}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif($g-\u003eis_public == 0) {\r","type":"equal"}],"line":502},"right":{"chunks":[{"value":"\t\t\tif($g-\u003eis_public == 0) {\r","type":"equal"}],"line":481}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r","type":"equal"}],"line":503},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= $this-\u003eget_group_invited_members($gid, $force_refresh);\r","type":"equal"}],"line":482}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE ","type":"equal"},{"value":" (active=1 OR sus_time\u003c\"'.time().'\")","type":"remove"},{"value":" AND is_network_admin=1', FALSE);\r","type":"equal"}],"line":504},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM users WHERE ","type":"equal"},{"value":"active=1","type":"insert"},{"value":" AND is_network_admin=1', FALSE);\r","type":"equal"}],"line":483}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":505},"right":{"chunks":[{"value":"\t\t\t\twhile($sdf = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":484}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r","type":"equal"}],"line":506},"right":{"chunks":[{"value":"\t\t\t\t\t$u_in[]\t= intval($sdf-\u003eid);\r","type":"equal"}],"line":485}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":507},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":486}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= array_unique($u_in);\r","type":"equal"}],"line":508},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= array_unique($u_in);\r","type":"equal"}],"line":487}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r","type":"equal"}],"line":509},"right":{"chunks":[{"value":"\t\t\t\t$u_in\t= count($u_in)==0 ? '-1' : implode(', ', $u_in);\r","type":"equal"}],"line":488}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":510},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" AND user_id IN('.$u_in.') ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":489}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":511},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":490}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\telse {\r","type":"equal"}],"line":512},"right":{"chunks":[{"value":"\t\t\telse {\r","type":"equal"}],"line":491}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":513},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT user_id, group_from_postid FROM groups_followed WHERE group_id=\"'.$g-\u003eid.'\" ORDER BY id ASC', FALSE);\r","type":"equal"}],"line":492}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":514},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":493}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":515},"right":{"chunks":[{"value":"\t\t\twhile($o = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":494}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r","type":"equal"}],"line":516},"right":{"chunks":[{"value":"\t\t\t\t$data[intval($o-\u003euser_id)]\t= intval($o-\u003egroup_from_postid);\r","type":"equal"}],"line":495}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":517},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":496}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":518},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":497}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":519},"right":{"chunks":[{"value":"\t\t\treturn $data;\r","type":"equal"}],"line":498}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":520},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":499}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":521},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":500}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_last_post_id()\r","type":"equal"}],"line":522},"right":{"chunks":[{"value":"\t\tpublic function get_last_post_id()\r","type":"equal"}],"line":501}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":523},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":502}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":524},"right":{"chunks":[{"value":"\t\t\tif( ! $this-\u003eid ) {\r","type":"equal"}],"line":503}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn 0;\r","type":"equal"}],"line":525},"right":{"chunks":[{"value":"\t\t\t\treturn 0;\r","type":"equal"}],"line":504}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":526},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":505}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r","type":"equal"}],"line":527},"right":{"chunks":[{"value":"\t\t\treturn intval($this-\u003edb2-\u003efetch_field('SELECT MAX(id) FROM posts'));\r","type":"equal"}],"line":506}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":528},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":507}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":529},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":508}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r","type":"equal"}],"line":530},"right":{"chunks":[{"value":"\t\tpublic function get_recent_posttags($in_sql, $count=20, $force_refresh=FALSE)\r","type":"equal"}],"line":509}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":531},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":510}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r","type":"equal"}],"line":532},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',active_tags:'.md5($in_sql);\r","type":"equal"}],"line":511}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":533},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":512}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":534},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":513}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":535},"right":{"chunks":[{"value":"\t\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":514}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":536},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":515}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// this is to avoid running the query below multiple times at once \r","type":"equal"}],"line":537},"right":{"chunks":[{"value":"\t\t\t// this is to avoid running the query below multiple times at once \r","type":"equal"}],"line":516}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r","type":"equal"}],"line":538},"right":{"chunks":[{"value":"\t\t\t\t$inprogressflag\t= 'n:'.$this-\u003eid.',active_tags_loading';\r","type":"equal"}],"line":517}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r","type":"equal"}],"line":539},"right":{"chunks":[{"value":"\t\t\t\tif( $this-\u003ecache-\u003eget($inprogressflag) == 12345 ) { return array(); }\r","type":"equal"}],"line":518}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r","type":"equal"}],"line":540},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($inprogressflag, 12345, 5*60);\r","type":"equal"}],"line":519}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// \r","type":"equal"}],"line":541},"right":{"chunks":[{"value":"\t\t\t// \r","type":"equal"}],"line":520}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":542},"right":{"chunks":[{"value":"\t\t\t$data\t= array();\r","type":"equal"}],"line":521}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r","type":"equal"}],"line":543},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT message, date FROM posts WHERE api_id\u003c\u003e2 AND api_id\u003c\u003e6 AND posttags\u003c\u003e0 '.$in_sql.' ORDER BY id DESC LIMIT 1000');\r","type":"equal"}],"line":522}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":544},"right":{"chunks":[{"value":"\t\t\twhile($tmp = $this-\u003edb2-\u003efetch_object()) {\r","type":"equal"}],"line":523}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\tif( ! ","type":"equal"},{"value":"preg_match_all('/\\#([א-תÀ-ÿ一-龥а-яa-z0-9\\-_]{1,50})/iu',","type":"remove"},{"value":" stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r","type":"equal"}],"line":545},"right":{"chunks":[{"value":"\t\t\t\tif( ! ","type":"equal"},{"value":"preg_match_all('/\\#([א-תا-یÀ-ÿ一-龥а-яآ-یa-z0-9\\-_]{1,50})/iu',","type":"insert"},{"value":" stripslashes($tmp-\u003emessage), $matches, PREG_PATTERN_ORDER) ) {\r","type":"equal"}],"line":524}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tcontinue;\r","type":"equal"}],"line":546},"right":{"chunks":[{"value":"\t\t\t\t\tcontinue;\r","type":"equal"}],"line":525}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":547},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":526}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array();\r","type":"equal"}],"line":548},"right":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array();\r","type":"equal"}],"line":527}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($matches[1] as $tg) {\r","type":"equal"}],"line":549},"right":{"chunks":[{"value":"\t\t\t\tforeach($matches[1] as $tg) {\r","type":"equal"}],"line":528}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r","type":"equal"}],"line":550},"right":{"chunks":[{"value":"\t\t\t\t\t$thisposttags[]\t= mb_strtolower(trim($tg));\r","type":"equal"}],"line":529}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":551},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":530}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r","type":"equal"}],"line":552},"right":{"chunks":[{"value":"\t\t\t\t$thisposttags\t= array_unique($thisposttags);\r","type":"equal"}],"line":531}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$weight\t= 1;\r","type":"equal"}],"line":553},"right":{"chunks":[{"value":"\t\t\t\t$weight\t= 1;\r","type":"equal"}],"line":532}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r","type":"equal"}],"line":554},"right":{"chunks":[{"value":"\t\t\t\tif( $tmp-\u003edate \u003e time()-24*3600 ) {\r","type":"equal"}],"line":533}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 100;\r","type":"equal"}],"line":555},"right":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 100;\r","type":"equal"}],"line":534}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":556},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":535}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r","type":"equal"}],"line":557},"right":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-7*24*3600 ) {\r","type":"equal"}],"line":536}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weigth\t= 20;\r","type":"equal"}],"line":558},"right":{"chunks":[{"value":"\t\t\t\t\t$weigth\t= 20;\r","type":"equal"}],"line":537}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":559},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":538}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r","type":"equal"}],"line":560},"right":{"chunks":[{"value":"\t\t\t\telseif( $tmp-\u003edate \u003e time()-30*24*3600 ) {\r","type":"equal"}],"line":539}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 5;\r","type":"equal"}],"line":561},"right":{"chunks":[{"value":"\t\t\t\t\t$weight\t= 5;\r","type":"equal"}],"line":540}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":562},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":541}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($thisposttags as $tg) {\r","type":"equal"}],"line":563},"right":{"chunks":[{"value":"\t\t\t\tforeach($thisposttags as $tg) {\r","type":"equal"}],"line":542}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif( ! isset($data[$tg]) ) {\r","type":"equal"}],"line":564},"right":{"chunks":[{"value":"\t\t\t\t\tif( ! isset($data[$tg]) ) {\r","type":"equal"}],"line":543}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$data[$tg]\t= 0;\r","type":"equal"}],"line":565},"right":{"chunks":[{"value":"\t\t\t\t\t\t$data[$tg]\t= 0;\r","type":"equal"}],"line":544}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":566},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":545}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$data[$tg]\t+= $weight;\r","type":"equal"}],"line":567},"right":{"chunks":[{"value":"\t\t\t\t\t$data[$tg]\t+= $weight;\r","type":"equal"}],"line":546}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":568},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":547}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":569},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":548}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tarsort($data);\r","type":"equal"}],"line":570},"right":{"chunks":[{"value":"\t\t\tarsort($data);\r","type":"equal"}],"line":549}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array_keys($data);\r","type":"equal"}],"line":571},"right":{"chunks":[{"value":"\t\t\t$data\t= array_keys($data);\r","type":"equal"}],"line":550}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, 50);\r","type":"equal"}],"line":572},"right":{"chunks":[{"value":"\t\t\t$data\t= array_slice($data, 0, 50);\r","type":"equal"}],"line":551}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":573},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":552}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r","type":"equal"}],"line":574},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003edel($inprogressflag);\r","type":"equal"}],"line":553}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":575},"right":{"chunks":[{"value":"\t\t\treturn array_slice($data, 0, $count);\r","type":"equal"}],"line":554}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":576},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":555}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":577},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":556}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r","type":"equal"}],"line":578},"right":{"chunks":[{"value":"\t\tpublic function get_user_notif_rules($user_id, $force_refresh=FALSE)\r","type":"equal"}],"line":557}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":579},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":558}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r","type":"equal"}],"line":580},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',usr_ntf_rulz:'.$user_id;\r","type":"equal"}],"line":559}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":581},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":560}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":582},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":561}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":583},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":562}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":584},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":563}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":585},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":564}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":586},"right":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":565}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r","type":"equal"}],"line":587},"right":{"chunks":[{"value":"\t\t\t\trequire_once( $GLOBALS['C']-\u003eINCPATH.'helpers/func_signup.php' );\r","type":"equal"}],"line":566}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tset_user_default_notification_rules($user_id);\r","type":"equal"}],"line":588},"right":{"chunks":[{"value":"\t\t\t\tset_user_default_notification_rules($user_id);\r","type":"equal"}],"line":567}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":589},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":568}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":590},"right":{"chunks":[{"value":"\t\t\t$this-\u003edb2-\u003equery('SELECT * FROM users_notif_rules WHERE user_id=\"'.$user_id.'\" LIMIT 1');\r","type":"equal"}],"line":569}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":591},"right":{"chunks":[{"value":"\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object() ) {\r","type":"equal"}],"line":570}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":592},"right":{"chunks":[{"value":"\t\t\t\treturn FALSE;\r","type":"equal"}],"line":571}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":593},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":572}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tunset($obj-\u003euser_id);\r","type":"equal"}],"line":594},"right":{"chunks":[{"value":"\t\t\tunset($obj-\u003euser_id);\r","type":"equal"}],"line":573}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":595},"right":{"chunks":[{"value":"\t\t\t$this-\u003ecache-\u003eset($cachekey, $obj, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":574}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn $obj;\r","type":"equal"}],"line":596},"right":{"chunks":[{"value":"\t\t\treturn $obj;\r","type":"equal"}],"line":575}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":597},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":576}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":598},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":577}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r","type":"equal"}],"line":599},"right":{"chunks":[{"value":"\t\tpublic function get_posts_api($id, $force_refresh=FALSE)\r","type":"equal"}],"line":578}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":600},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":579}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$id\t= intval($id);\r","type":"equal"}],"line":601},"right":{"chunks":[{"value":"\t\t\t$id\t= intval($id);\r","type":"equal"}],"line":580}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":602},"right":{"chunks":[{"value":"\t\t\tstatic $loaded = array();\r","type":"equal"}],"line":581}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r","type":"equal"}],"line":603},"right":{"chunks":[{"value":"\t\t\t$cachekey\t= 'n:'.$this-\u003eid.',post_app:'.$id;\r","type":"equal"}],"line":582}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":604},"right":{"chunks":[{"value":"\t\t\tif( isset($loaded[$cachekey]) \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":583}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":605},"right":{"chunks":[{"value":"\t\t\t\treturn $loaded[$cachekey];\r","type":"equal"}],"line":584}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":606},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":585}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":607},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003ecache-\u003eget($cachekey);\r","type":"equal"}],"line":586}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":608},"right":{"chunks":[{"value":"\t\t\tif( FALSE!==$data \u0026\u0026 TRUE!=$force_refresh ) {\r","type":"equal"}],"line":587}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":609},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":588}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":610},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":589}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":611},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":590}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":612},"right":{"chunks":[{"value":"\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id, name FROM applications WHERE id=\"'.$id.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":591}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":613},"right":{"chunks":[{"value":"\t\t\tif( $data = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"equal"}],"line":592}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r","type":"equal"}],"line":614},"right":{"chunks":[{"value":"\t\t\t\t$data-\u003ename\t= stripslashes($data-\u003ename);\r","type":"equal"}],"line":593}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":615},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003ecache-\u003eset($cachekey, $data, $GLOBALS['C']-\u003eCACHE_EXPIRE);\r","type":"equal"}],"line":594}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":616},"right":{"chunks":[{"value":"\t\t\t\t$loaded[$cachekey]\t= $data;\r","type":"equal"}],"line":595}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":617},"right":{"chunks":[{"value":"\t\t\t\treturn $data;\r","type":"equal"}],"line":596}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":618},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":597}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":619},"right":{"chunks":[{"value":"\t\t\treturn FALSE;\r","type":"equal"}],"line":598}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":620},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":599}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":621},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":600}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r","type":"equal"}],"line":622},"right":{"chunks":[{"value":"\t\tpublic function send_notification_post($to_user_id, $in_group_id, $lang_key, $lang_params, $if_exists_action='ignore')\r","type":"equal"}],"line":601}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":623},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":602}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r","type":"equal"}],"line":624},"right":{"chunks":[{"value":"\t\t\t// $if_exists_action: 'ignore' or 'replace' or 'quit' - please use 'ignore', otherwise it could cause heavy performance leaks\r","type":"equal"}],"line":603}},{"start":true,"end":true,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t$if_exists_action='ignore';\r","type":"remove"}],"line":625},"right":{"chunks":[{"value":"\t\t\t\r","type":"insert"}],"line":604}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":626},"right":{"chunks":[{"value":"\t\t\tglobal $C;\r","type":"equal"}],"line":605}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$to_user_id\t\t= intval($to_user_id);\r","type":"equal"}],"line":627},"right":{"chunks":[{"value":"\t\t\t$to_user_id\t\t= intval($to_user_id);\r","type":"equal"}],"line":606}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$in_group_id\t= intval($in_group_id);\r","type":"equal"}],"line":628},"right":{"chunks":[{"value":"\t\t\t$in_group_id\t= intval($in_group_id);\r","type":"equal"}],"line":607}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r","type":"equal"}],"line":629},"right":{"chunks":[{"value":"\t\t\tif( $C-\u003eAPI_ID == 1 ) {\r","type":"equal"}],"line":608}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":630},"right":{"chunks":[{"value":"\t\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":609}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":631},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":610}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":632},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":611}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":633},"right":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":612}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":634},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":613}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":635},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":614}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":636},"right":{"chunks":[{"value":"\t\t\t\telseif( preg_match('/\\/m(\\/|$)/iu', $C-\u003eSITE_URL, $m) ) {\r","type":"equal"}],"line":615}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r","type":"equal"}],"line":637},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= preg_replace('/\\/m(\\/|$)/', '', $C-\u003eSITE_URL);\r","type":"equal"}],"line":616}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r","type":"equal"}],"line":638},"right":{"chunks":[{"value":"\t\t\t\t\t$siteurl\t= rtrim($siteurl,'/').'/';\r","type":"equal"}],"line":617}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":639},"right":{"chunks":[{"value":"\t\t\t\t\tforeach($lang_params as \u0026$p) {\r","type":"equal"}],"line":618}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":640},"right":{"chunks":[{"value":"\t\t\t\t\t\t$p\t= str_replace($C-\u003eSITE_URL, $siteurl, $p);\r","type":"equal"}],"line":619}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":641},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":620}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":642},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":621}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":643},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":622}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= (object) array (\r","type":"equal"}],"line":644},"right":{"chunks":[{"value":"\t\t\t$data\t= (object) array (\r","type":"equal"}],"line":623}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'type'\t\t=\u003e 'notif',\r","type":"equal"}],"line":645},"right":{"chunks":[{"value":"\t\t\t\t'type'\t\t=\u003e 'notif',\r","type":"equal"}],"line":624}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r","type":"equal"}],"line":646},"right":{"chunks":[{"value":"\t\t\t\t'to_user_id'\t=\u003e $to_user_id,\r","type":"equal"}],"line":625}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r","type":"equal"}],"line":647},"right":{"chunks":[{"value":"\t\t\t\t'in_group_id'\t=\u003e $in_group_id,\r","type":"equal"}],"line":626}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r","type":"equal"}],"line":648},"right":{"chunks":[{"value":"\t\t\t\t'lang_key'\t\t=\u003e $lang_key,\r","type":"equal"}],"line":627}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'lang_params'\t=\u003e $lang_params,\r","type":"equal"}],"line":649},"right":{"chunks":[{"value":"\t\t\t\t'lang_params'\t=\u003e $lang_params,\r","type":"equal"}],"line":628}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r","type":"equal"}],"line":650},"right":{"chunks":[{"value":"\t\t\t\t'from_user_id'\t=\u003e $GLOBALS['user']-\u003eid,\r","type":"equal"}],"line":629}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":651},"right":{"chunks":[{"value":"\t\t\t);\r","type":"equal"}],"line":630}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r","type":"equal"}],"line":652},"right":{"chunks":[{"value":"\t\t\t$data\t= $this-\u003edb2-\u003ee(serialize($data));\r","type":"equal"}],"line":631}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $to_user_id \u003e 0 ) {\r","type":"equal"}],"line":653},"right":{"chunks":[{"value":"\t\t\tif( $to_user_id \u003e 0 ) {\r","type":"equal"}],"line":632}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":654},"right":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":633}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":655},"right":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"0\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":634}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":656},"right":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":635}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":657},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":636}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":658},"right":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":637}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":659},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":638}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":660},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":639}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":661},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":640}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r","type":"equal"}],"line":662},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM post_userbox WHERE post_id=\"'.$obj-\u003eid.'\" ', FALSE);\r","type":"equal"}],"line":641}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":663},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":642}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":664},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":643}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":665},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":644}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":666},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT INTO posts SET user_id=\"0\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":645}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t//\t$this-\u003edb2-\u003equery('INSERT","type":"remove"},{"value":" DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r","type":"equal"}],"line":667},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT","type":"insert"},{"value":" DELAYED INTO post_userbox SET user_id=\"'.$to_user_id.'\", post_id=\"'.intval($this-\u003edb2-\u003einsert_id()).'\" ');\r","type":"equal"},{"value":"","type":"insert"}],"line":646}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003eset_dashboard_tabstate($to_user_id, 'system', 1);\r","type":"insert"}],"line":647}},{"start":true,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":668},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":648}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\telseif( $in_group_id \u003e 0 ) {\r","type":"equal"}],"line":669},"right":{"chunks":[{"value":"\t\t\telseif( $in_group_id \u003e 0 ) {\r","type":"equal"}],"line":649}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":670},"right":{"chunks":[{"value":"\t\t\t\tif( $if_exists_action != 'ignore' ) {\r","type":"equal"}],"line":650}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":671},"right":{"chunks":[{"value":"\t\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT id FROM posts WHERE user_id=\"0\" AND group_id=\"'.$in_group_id.'\" AND message=\"'.$data.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":651}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":672},"right":{"chunks":[{"value":"\t\t\t\t\tif($obj = $this-\u003edb2-\u003efetch_object($r)) {\r","type":"equal"}],"line":652}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":673},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'quit' ) {\r","type":"equal"}],"line":653}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":674},"right":{"chunks":[{"value":"\t\t\t\t\t\t\treturn;\r","type":"equal"}],"line":654}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":675},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":655}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":676},"right":{"chunks":[{"value":"\t\t\t\t\t\tif( $if_exists_action == 'replace' ) {\r","type":"equal"}],"line":656}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":677},"right":{"chunks":[{"value":"\t\t\t\t\t\t\t$this-\u003edb2-\u003equery('DELETE FROM posts WHERE id=\"'.$obj-\u003eid.'\" LIMIT 1', FALSE);\r","type":"equal"}],"line":657}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":678},"right":{"chunks":[{"value":"\t\t\t\t\t\t}\r","type":"equal"}],"line":658}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":679},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"equal"}],"line":659}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":680},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":660}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":681},"right":{"chunks":[{"value":"\t\t\t\t$this-\u003edb2-\u003equery('INSERT DELAYED INTO posts SET group_id=\"'.$in_group_id.'\", message=\"'.$data.'\", date=\"'.time().'\", ip_addr=\"'.ip2long($_SERVER['REMOTE_ADDR']).'\" ', FALSE);\r","type":"equal"}],"line":661}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":682},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":662}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":683},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":663}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r","type":"equal"}],"line":684},"right":{"chunks":[{"value":"\t\tpublic function send_notification_email($to_user_id, $notif_type, $subject, $message_txt, $message_html, $inD=FALSE)\r","type":"equal"}],"line":664}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":685},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":665}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tglobal $C, $D, $page;\r","type":"equal"}],"line":686},"right":{"chunks":[{"value":"\t\t\tglobal $C, $D, $page;\r","type":"equal"}],"line":666}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $inD ) {\r","type":"equal"}],"line":687},"right":{"chunks":[{"value":"\t\t\tif( $inD ) {\r","type":"equal"}],"line":667}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($inD as $k=\u003e$v) {\r","type":"equal"}],"line":688},"right":{"chunks":[{"value":"\t\t\t\tforeach($inD as $k=\u003e$v) {\r","type":"equal"}],"line":668}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$D-\u003e$k\t= $v;\r","type":"equal"}],"line":689},"right":{"chunks":[{"value":"\t\t\t\t\t$D-\u003e$k\t= $v;\r","type":"equal"}],"line":669}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":690},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":670}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":691},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":671}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r","type":"equal"}],"line":692},"right":{"chunks":[{"value":"\t\t\t$to_user\t= $this-\u003eget_user_by_id($to_user_id);\r","type":"equal"}],"line":672}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r","type":"equal"}],"line":693},"right":{"chunks":[{"value":"\t\t\tif( !$to_user || empty($subject) || empty($message_txt) || empty($message_html) ) {\r","type":"equal"}],"line":673}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":694},"right":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":674}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":695},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":675}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003epage\t= \u0026 $page;\r","type":"equal"}],"line":696},"right":{"chunks":[{"value":"\t\t\t$D-\u003epage\t= \u0026 $page;\r","type":"equal"}],"line":676}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003euser\t= $to_user;\r","type":"equal"}],"line":697},"right":{"chunks":[{"value":"\t\t\t$D-\u003euser\t= $to_user;\r","type":"equal"}],"line":677}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003esubject\t\t= $subject;\r","type":"equal"}],"line":698},"right":{"chunks":[{"value":"\t\t\t$D-\u003esubject\t\t= $subject;\r","type":"equal"}],"line":678}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003emessage_txt\t= $message_txt;\r","type":"equal"}],"line":699},"right":{"chunks":[{"value":"\t\t\t$D-\u003emessage_txt\t= $message_txt;\r","type":"equal"}],"line":679}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$D-\u003emessage_html\t= $message_html;\r","type":"equal"}],"line":700},"right":{"chunks":[{"value":"\t\t\t$D-\u003emessage_html\t= $message_html;\r","type":"equal"}],"line":680}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r","type":"equal"}],"line":701},"right":{"chunks":[{"value":"\t\t\t$msgtxt\t= $page-\u003eload_template('email/notifications_txt.php', FALSE);\r","type":"equal"}],"line":681}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r","type":"equal"}],"line":702},"right":{"chunks":[{"value":"\t\t\t$msghtml\t= $page-\u003eload_template('email/notifications_html.php', FALSE);\r","type":"equal"}],"line":682}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r","type":"equal"}],"line":703},"right":{"chunks":[{"value":"\t\t\tif( empty($msgtxt) || empty($msghtml) ) {\r","type":"equal"}],"line":683}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":704},"right":{"chunks":[{"value":"\t\t\t\treturn;\r","type":"equal"}],"line":684}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":705},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":685}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r","type":"equal"}],"line":706},"right":{"chunks":[{"value":"\t\t\tif( $C-\u003eSITE_URL != $C-\u003eDEF_SITE_URL ) {\r","type":"equal"}],"line":686}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r","type":"equal"}],"line":707},"right":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msgtxt);\r","type":"equal"}],"line":687}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r","type":"equal"}],"line":708},"right":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eSITE_URL, $C-\u003eDEF_SITE_URL, $msghtml);\r","type":"equal"}],"line":688}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":709},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":689}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r","type":"equal"}],"line":710},"right":{"chunks":[{"value":"\t\t\tif( preg_match('/^(http(s)?\\:\\/\\/)m\\.(.*)$/iu', $C-\u003eDEF_SITE_URL, $m) ) {\r","type":"equal"}],"line":690}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":711},"right":{"chunks":[{"value":"\t\t\t\t$siteurl\t= $m[1].$m[3];\r","type":"equal"}],"line":691}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r","type":"equal"}],"line":712},"right":{"chunks":[{"value":"\t\t\t\t$msgtxt\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msgtxt);\r","type":"equal"}],"line":692}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r","type":"equal"}],"line":713},"right":{"chunks":[{"value":"\t\t\t\t$msghtml\t= str_replace($C-\u003eDEF_SITE_URL, $siteurl, $msghtml);\r","type":"equal"}],"line":693}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":714},"right":{"chunks":[{"value":"\t\t\t}\r","type":"equal"}],"line":694}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r","type":"equal"}],"line":715},"right":{"chunks":[{"value":"\t\t\tdo_send_mail_html($to_user-\u003eemail, $subject, $msgtxt, $msghtml);\r","type":"equal"}],"line":695}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":716},"right":{"chunks":[{"value":"\t\t}\r","type":"equal"}],"line":696}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":717},"right":{"chunks":[{"value":"\t\t\r","type":"equal"}],"line":697}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r","type":"equal"}],"line":718},"right":{"chunks":[{"value":"\t\tpublic function get_dashboard_tabstate($user_id, $tabs)\r","type":"equal"}],"line":698}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":719},"right":{"chunks":[{"value":"\t\t{\r","type":"equal"}],"line":699}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t$user_id\t= intval($user_id);\r","type":"equal"}],"line":720},"right":{"chunks":[{"value":"\t\t\t$user_id\t= intval($user_id);\r","type":"equal"}],"line":700}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\tif( is_array($tabs) ) {\r","type":"equal"}],"line":721},"right":{"chunks":[{"value":"\t\t\tif( is_array($tabs) ) {\r","type":"equal"}],"line":701}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$result\t= array();\r","type":"equal"}],"line":722},"right":{"chunks":[{"value":"\t\t\t\t$result\t= array();\r","type":"equal"}],"line":702}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$tmp\t= array();\r","type":"equal"}],"line":723},"right":{"chunks":[{"value":"\t\t\t\t$tmp\t= array();\r","type":"equal"}],"line":703}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\tforeach($tabs as $tab) {\r","type":"equal"}],"line":724},"right":{"chunks":[{"value":"\t\t\t\tforeach($tabs as $tab) {\r","type":"equal"}],"line":704}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$result[$tab]\t= 0;\r","type":"equal"}],"line":725},"right":{"chunks":[{"value":"\t\t\t\t\t$result[$tab]\t= 0;\r","type":"equal"}],"line":705}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r","type":"equal"}],"line":726},"right":{"chunks":[{"value":"\t\t\t\t\t$tmp[]\t= '\"'.$this-\u003edb2-\u003ee($tab).'\"';\r","type":"equal"}],"line":706}},{"start":false,"end":false,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":727},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"equal"}],"line":707}},{"start":false,"end":true,"insideChanged":false,"left":{"chunks":[{"value":"\t\t\t\t$tmp\t= implode(', ', $tmp);\r","type":"equal"}],"line":728},"right":{"chunks":[{"value":"\t\t\t\t$tmp\t= implode(', ', $tmp);\r","type":"equal"}],"line":708}},{"start":true,"end":false,"insideChanged":true,"left":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs),","type":"equal"}],"line":729},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab IN('.$tmp.') LIMIT '.count($tabs),","type":"equal"},{"value":" FALSE);\r","type":"insert"}],"line":709}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\twhile( $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"insert"}],"line":710}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t$result[$obj-\u003etab]\t= $obj-\u003estate==0 ? 0 : intval($obj-\u003enewposts);\r","type":"insert"}],"line":711}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\tif( $result[$obj-\u003etab] \u003e 99 ) {\r","type":"insert"}],"line":712}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t\t$result[$obj-\u003etab]\t= '99+';\r","type":"insert"}],"line":713}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\t}\r","type":"insert"}],"line":714}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"insert"}],"line":715}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\treturn $result;\r","type":"insert"}],"line":716}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t}\r","type":"insert"}],"line":717}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\telse {\r","type":"insert"}],"line":718}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t$r\t= $this-\u003edb2-\u003equery('SELECT tab, state, newposts FROM users_dashboard_tabs WHERE user_id=\"'.$user_id.'\" AND tab=\"'.$this-\u003edb2-\u003ee($tabs).'\" LIMIT 1', FALSE);\r","type":"insert"}],"line":719}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\tif( ! $obj = $this-\u003edb2-\u003efetch_object($r) ) {\r","type":"insert"}],"line":720}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t\treturn 0;\r","type":"insert"}],"line":721}},{"start":false,"end":false,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t}\r","type":"insert"}],"line":722}},{"start":false,"end":true,"insideChanged":true,"left":{"chunks":[]},"right":{"chunks":[{"value":"\t\t\t\t","type":"insert"}],"line":723}}],"blocks":[{"index":0,"lineStart":0,"lineEnd":38,"type":{"left":"equal","right":"equal"}},{"index":1,"lineStart":39,"lineEnd":43,"type":{"left":"remove","right":"equal"}},{"index":2,"lineStart":44,"lineEnd":44,"type":{"left":"equal","right":"equal"}},{"index":3,"lineStart":45,"lineEnd":45,"type":{"left":"remove","right":"insert"}},{"index":4,"lineStart":46,"lineEnd":46,"type":{"left":"equal","right":"equal"}},{"index":5,"lineStart":47,"lineEnd":47,"type":{"left":"remove","right":"insert"}},{"index":6,"lineStart":48,"lineEnd":51,"type":{"left":"equal","right":"equal"}},{"index":7,"lineStart":52,"lineEnd":52,"type":{"left":"remove","right":"equal"}},{"index":8,"lineStart":53,"lineEnd":54,"type":{"left":"equal","right":"equal"}},{"index":9,"lineStart":55,"lineEnd":55,"type":{"left":"equal","right":"insert"}},{"index":10,"lineStart":56,"lineEnd":108,"type":{"left":"equal","right":"equal"}},{"index":11,"lineStart":109,"lineEnd":109,"type":{"left":"remove","right":"insert"}},{"index":12,"lineStart":110,"lineEnd":132,"type":{"left":"equal","right":"equal"}},{"index":13,"lineStart":133,"lineEnd":133,"type":{"left":"remove","right":"insert"}},{"index":14,"lineStart":134,"lineEnd":169,"type":{"left":"equal","right":"equal"}},{"index":15,"lineStart":170,"lineEnd":176,"type":{"left":"remove","right":"insert"}},{"index":16,"lineStart":177,"lineEnd":207,"type":{"left":"equal","right":"equal"}},{"index":17,"lineStart":208,"lineEnd":210,"type":{"left":"remove","right":"insert"}},{"index":18,"lineStart":211,"lineEnd":252,"type":{"left":"equal","right":"equal"}},{"index":19,"lineStart":253,"lineEnd":253,"type":{"left":"remove","right":"equal"}},{"index":20,"lineStart":254,"lineEnd":254,"type":{"left":"equal","right":"equal"}},{"index":21,"lineStart":255,"lineEnd":257,"type":{"left":"remove","right":"equal"}},{"index":22,"lineStart":258,"lineEnd":297,"type":{"left":"equal","right":"equal"}},{"index":23,"lineStart":298,"lineEnd":298,"type":{"left":"remove","right":"insert"}},{"index":24,"lineStart":299,"lineEnd":317,"type":{"left":"equal","right":"equal"}},{"index":25,"lineStart":318,"lineEnd":319,"type":{"left":"remove","right":"equal"}},{"index":26,"lineStart":320,"lineEnd":326,"type":{"left":"equal","right":"equal"}},{"index":27,"lineStart":327,"lineEnd":327,"type":{"left":"remove","right":"insert"}},{"index":28,"lineStart":328,"lineEnd":332,"type":{"left":"equal","right":"equal"}},{"index":29,"lineStart":333,"lineEnd":333,"type":{"left":"remove","right":"insert"}},{"index":30,"lineStart":334,"lineEnd":340,"type":{"left":"equal","right":"equal"}},{"index":31,"lineStart":341,"lineEnd":341,"type":{"left":"remove","right":"insert"}},{"index":32,"lineStart":342,"lineEnd":346,"type":{"left":"equal","right":"equal"}},{"index":33,"lineStart":347,"lineEnd":347,"type":{"left":"remove","right":"insert"}},{"index":34,"lineStart":348,"lineEnd":351,"type":{"left":"equal","right":"equal"}},{"index":35,"lineStart":352,"lineEnd":354,"type":{"left":"remove","right":"insert"}},{"index":36,"lineStart":355,"lineEnd":355,"type":{"left":"equal","right":"equal"}},{"index":37,"lineStart":356,"lineEnd":356,"type":{"left":"remove","right":"insert"}},{"index":38,"lineStart":357,"lineEnd":358,"type":{"left":"equal","right":"equal"}},{"index":39,"lineStart":359,"lineEnd":359,"type":{"left":"remove","right":"insert"}},{"index":40,"lineStart":360,"lineEnd":360,"type":{"left":"equal","right":"equal"}},{"index":41,"lineStart":361,"lineEnd":362,"type":{"left":"remove","right":"insert"}},{"index":42,"lineStart":363,"lineEnd":503,"type":{"left":"equal","right":"equal"}},{"index":43,"lineStart":504,"lineEnd":504,"type":{"left":"remove","right":"insert"}},{"index":44,"lineStart":505,"lineEnd":544,"type":{"left":"equal","right":"equal"}},{"index":45,"lineStart":545,"lineEnd":545,"type":{"left":"remove","right":"insert"}},{"index":46,"lineStart":546,"lineEnd":624,"type":{"left":"equal","right":"equal"}},{"index":47,"lineStart":625,"lineEnd":625,"type":{"left":"remove","right":"insert"}},{"index":48,"lineStart":626,"lineEnd":666,"type":{"left":"equal","right":"equal"}},{"index":49,"lineStart":667,"lineEnd":668,"type":{"left":"remove","right":"insert"}},{"index":50,"lineStart":669,"lineEnd":729,"type":{"left":"equal","right":"equal"}},{"index":51,"lineStart":730,"lineEnd":744,"type":{"left":"remove","right":"insert"}}],"added":37,"removed":41,"moves":{"deletionToInsertionMap":[],"insertionToDeletionMap":[]},"fullyNormalized":false,"diffLevel":"word"}],"diffLevel":"word","syntaxHighlight":"","isHydrated":false,"commentThreads":[],"commentThreadsLoadedForSlug":"","textDiffOutputSettings":{"diffVersion":"regular","diffType":"split","diffCompression":"expanded","diffLevel":"word","syntaxHighlight":""}},"feedback":{"error":false,"success":false,"isHydrated":false},"user":{"status":"to be determined","error":false,"success":false,"diffs":[],"secretDiffs":[],"diffType":"split","diffVersion":"regular","isHydrated":false},"license":{"error":false,"licenseKeyInitiallyValidated":false,"valid":false,"licenses":[],"isHydrated":false,"isOfflineLicense":false},"payments":{"subscriptions":[],"paymentMethods":[],"subscriptionsStatus":"idle","isHydrated":false},"organization":{"samlSsoConfigured":false,"organization":null}}},"page":"/[...slug]","query":{"slug":["qxrjy8a4"]},"buildId":"L75eMLtMTTv3v9KlKtPmo","isFallback":false,"isExperimentalCompile":false,"gip":true,"appGip":true,"locale":"fr","locales":["en","de","fr","es","pt","it","hi","zh-Hans","zh-Hant","jp"],"defaultLocale":"en","scriptLoader":[]}</script></body></html>

Pages: 1 2 3 4 5 6 7 8 9 10