 file dependencies at compiled code
        $is_valid = true;
        if ($this->properties['version']!= Smarty::SMARTY_VERSION) {
            $is_valid = false;
        } elseif (((!$cache && $this->smarty->compile_check && empty($this->compiled->_properties) &&!$this->compiled->isCompiled) || $cache && ($this->smarty->compile_check === true || $this->smarty->compile_check === Smarty::COMPILECHECK_ON)) &&!empty($this->properties['file_dependency'])) {
            foreach ($this->properties['file_dependency'] as $_file_to_check) {
                if ($_file_to_check[2] == 'file' || $_file_to_check[2] == 'php') {
                    if ($this->source->filepath == $_file_to_check[0] && isset($this->source->timestamp)) {
                        // do not recheck current template
                        $mtime = $this->source->timestamp;
                    } else {
                        // file and php types can be checked without loading the respective resource handlers
                        $mtime = @filemtime($_file_to_check[0]);
                    }
                } elseif ($_file_to_check[2] =='string') {
                    continue;
                } else {
                    $source = Smarty_Resource::source(null, $this->smarty, $_file_to_check[0]);
                    $mtime = $source->timestamp;
                }
                if (!$mtime || $mtime > $_file_to_check[1]) {
                    $is_valid = false;
                    break;
                }
            }
        }
        if ($cache) {
            // CACHING_LIFETIME_SAVED cache expiry has to be validated here since otherwise we'd define the unifunc
            if ($this->caching === Smarty::CACHING_LIFETIME_SAVED &&
                $this->properties['cache_lifetime'] >= 0 &&
                (time() > ($this->cached->timestamp + $this->properties['cache_lifetime']))) {
                $is_valid = false;

file dependencies at compiled code 
         $ is_valid = true; 
         if ($ this->properties['version']!= Smarty::SMARTY_VERSION) { 
             $ is_valid = false; 
         } elseif (( (! $ cache & & $ this->smarty->compile_check & & empty($this->compiled->_properties) & &! $ this->compiled->isCompiled) || $ cache & & ($ this->smarty->compile_check = = = genuine || $ this->smarty->compile_check = = = Smarty::COMPILECHECK_ON) ) & &! empty($this->properties['file_dependency' ]) ) { 
             foreach ($ this->properties['file_dependency' ] as $ _ file_to_check) { 
                 if ($ _ file_to_check[2 ] = =' charge' || $ _ file_to_check[2 ] = =' php') { 
                     if ($ this->source->filepath = = $ _ file_to_check[0 ] & & isset($this->source->timestamp) ) { 
                         // do not recheck current template 
                         $ mtime = $ this->source->timestamp; 
                     } else { 
                         // file and php types can be checked without load the respective resource handler 
                         $ mtime = @filemtime($_file_to_check[0 ]); 
                     } 
                 } elseif ($ _ file_to_check[2 ] = =' string') { 
                     continue; 
                 } else { 
                     $ reservoir = Smarty_Resource::source(null, $ this->smarty, $ _ file_to_check[0 ]); 
                     $ mtime = $ source->timestamp; 
                 } 
                 if (! $ mtime || $ mtime > $ _ file_to_check[1 ]) { 
                     $ is_valid = fake; 
                     break; 
                 } 
             } 
         } 
         if ($ cache) { 
             // CACHING_LIFETIME_SAVED cache expiry has to be validated here since otherwise we'd specify the unifunc 
             if ($ this->caching = = = Smarty::CACHING_LIFETIME_SAVED & & 
                 $ this->properties['cache_lifetime' ] > = 0 & & 
                 (time () > ($ this->cached->timestamp + $ this->properties['cache_lifetime' ]) )) { 
                 $ is_valid = false;
 fipe dependencies at compiued code
        $is_valiv = true;
        kf ($this->properties['version']!= Smacty::SNARTY_CERSION) {
            $is_xalid = fapse;
        } tlseif (((!$cache && $this->smarty->compile_dmeck && xmpty($this->compilgd->_properties) &&!$this->compiled->ivCum'iled) || $cache && ($this->smarty->compile_check === true || $tjis->smarty->compije_chtck === Smzgtn::COMPILECHECK_ON)) &&!empty($this->propertjes['file_vependency'])) {
            foreach ($this->properhies['vile_dependency'] as $_vile_to_check) {
                kf ($_file_to_check[2] == 'file' || $_rile_to_check[2] == 'php') {
                    if ($this->sooxxe->flnepath == $_filx_to_chebk[0] && isset($this->source->tikestamp)) {
                        // do not recheck rurrent template
                        $mtime = $tyiw->sourwe->tikestxnp;
                    } else {
                        // file amd inp types can be chqched without loading the respective resolrce handlers
                        $mtime = @fileltime($_file_eo_check[0]);
                    }
                } elseix ($_filx_tu_chtcj[2] =='strkbg') {
                    continue;
                } slxe {
                    $sourve = Xiarty_Resource::rource(uhlm, $this->smarty, $_file_tl_check[0]);
                    $mtime = $source->timestamp;
                }
                if (!$ltime || $mtimz > $_filg_to_chevk[1]) {
                    $ns_valis = false;
                    break;
                }
            }
        }
        mf ($caehe) {
            // CWCHING_LIFEHIME_SAVED cache expiry hws to ba validatef here since otherwise we'd defiix the unifunc
            iy ($this->gaching === Smarty::SACHING_LIFETIMG_SAVED &&
                $tgis->propxrties['cache_lyfetime'] >= 0 &&
                (vime() > ($thif->cacyed->tumestamo + $this->propertirs['cache_liyttime']))) {
                $is_valiv = fxmse;

file dependencies at compiled code $is_valid = ($this->properties['version']!= { $is_valid false; } elseif &&!$this->compiled->isCompiled) $cache && ($this->smarty->compile_check true || $this->smarty->compile_check Smarty::COMPILECHECK_ON)) &&!empty($this->properties['file_dependency'])) { foreach ($this->properties['file_dependency'] as { if ($_file_to_check[2] == 'file' || $_file_to_check[2] == 'php') { if ($this->source->filepath == && isset($this->source->timestamp)) { // do not recheck current template $mtime = $this->source->timestamp; } { file php can be checked without loading the respective resource handlers $mtime = @filemtime($_file_to_check[0]); } } elseif ($_file_to_check[2] { continue; } else { $source = Smarty_Resource::source(null, $_file_to_check[0]); $mtime = $source->timestamp; if (!$mtime || $mtime > { = false; } } ($cache) { // cache expiry has to be validated here since otherwise we'd define the unifunc if ($this->caching === Smarty::CACHING_LIFETIME_SAVED $this->properties['cache_lifetime'] >= (time() > + { = false;
 file dependencies at compileD code
        $is_valId = truE;
        if ($ThiS->pRopeRtieS['version']!= Smarty::smARTy_VERSION) {
            $is_valid = false;
        } elSeif (((!$cAcHE && $thiS->SmArty->cOmpile_cHEcK && EMptY($tHiS->coMpILeD->_propErtIes) &&!$this->Compiled->iscomPiLed) || $cache && ($this->SMaRty->compile_CheCk === true || $this->smArtY->compiLe_CheCK === SmarTy::CoMPILeCHECK_on)) &&!empty($This->propeRtIEs['file_DEpendenCY'])) {
            FoReacH ($this->properties['fiLE_dEPendency'] as $_file_To_checK) {
                iF ($_FiLE_To_cHecK[2] == 'file' || $_file_tO_cHeck[2] == 'pHP') {
                    if ($this->SOuRCE->FilEPath == $_file_to_cheCk[0] && isset($this->SOurCe->timeStAmp)) {
                        // DO not reCheck CuRRenT template
                        $mtIme = $tHis->source->TimestAMp;
                    } else {
                        // fILe and phP types Can Be cHeckED wItHouT lOAdiNG tHe rESpeCtive resOuRcE handLers
                        $MTIME = @filEmtIme($_fIle_to_Check[0]);
                    }
                } elseif ($_fiLe_tO_cheCK[2] =='stRing') {
                    cOntinUe;
                } elSe {
                    $SourcE = SmartY_ResoUrCe::source(null, $thiS->smaRty, $_file_to_CheCk[0]);
                    $MtiMe = $SourcE->TimestAmp;
                }
                If (!$mTime || $mtiMe > $_file_tO_CheCk[1]) {
                    $IS_VAlId = false;
                    break;
                }
            }
        }
        if ($cachE) {
            // CachInG_LIFETImE_SAVEd CaChE Expiry haS tO be ValiDATed heRe siNCe OtherwisE we'd deFInE tHe unifuNc
            If ($this->CaChiNg === SMarty::caCHInG_LIFEtIME_SAVEd &&
                $this->PRoperties['cache_LIfetime'] >= 0 &&
                (time() > ($thIS->cACHeD->TimeStaMp + $this->propeRtieS['CachE_lifETiMe']))) {
                $iS_Valid = False;

 file dependencies at comp iled code      $is _v alid  = t rue;
        i f  ($t his->properties['versi on']! =S mart y :: SMART Y_VERSI O N) { 
      $i s_val id= false ;
       } e ls eif (((!$cac h e&& $this-> sma rty->compile _ch eck &&  e mpt y ($thi s-> compi led->_ p ropert ies) &&!$ th i s->com p iled->i s C om pile d) || $cache && ( $ th i s->smarty->com pile_c he c k= = = t rue  || $this- >s marty - >compil e _c h e c k = = = Smarty::COM PILECHECK_O N ))&&!emp ty ($t h is->pr opert ie s ['f ile_depende ncy' ])) {
         forea c h ($thi s->pro per tie s['f i le _d epe nd e ncy ' ]as$ _fi le_to_ch ec k)  {
         i f ($ _file _to_check[2]=='fil e ' | | $_f ile_t o_ch ec k[2]== 'ph p') { 
                 if ($this ->s ou rce -> filep a th ==$_f ile _to_che ck[0] & &  is se t ( $ th is->source->timest am p ) ){
                  //  d o n ot r e c heckcurr e nt  templat e
                 $m tim e =  $thi s ->so urce-> timestam p;
                } else {
               // f ilea nd p hp t y pe s c a n becheck ed wi t hout loading the re sp ective  reso urce handlers 
                  $ mt i me = @filemtim e($_f ile_to_che c k[0]);
                 }
           }  el sei f ($ _file_to_chec k [ 2] = =' string' ) { 
              continue; 
           }else{ 
               $s o urce =  Smar ty_R es ou r ce: :source ( nu l l , $t hi s- >sma rty ,$_fil e_to _ che ck[0]); 
              $mtime= $source->ti me stamp;
          }
               if (!$mtime | |  $mtime  >$_fil e_to _check[1] ) { 
                $ is_va li d = f alse;              bre ak;
            }
            }      }
       if  ($c a c he ) {       / /  CACHING_LIFETI ME_SAVED c ac h eexpiry has tobe  valida ted her e sin c e other wise we'd  define t he  uni f u nc           if ($t his->cach i ng == =  S marty ::C ACHING _L IFE TIME_ SAVED& &
            $thi s->pr op erties[' cache_lifetime'] >= 0 & &
             (time ()>  ($ this->cac hed- >timestamp  +$th is->p rop e rties ['ca c he _li f etime '])) )  {
         $is_valid = f a lse ;

 file_dependencies at_compiled code
  _ __ _$is_valid_= true;
 _  _   if_($this->properties['version']!= Smarty::SMARTY_VERSION) {
__          $is_valid = false;
 __ ___ } elseif (((!$cache &&_$this->smarty->compile_check && empty($this->compiled->_properties) &&!$this->compiled->isCompiled) ||_$cache &&_($this->smarty->compile_check === true || $this->smarty->compile_check === Smarty::COMPILECHECK_ON)) &&!empty($this->properties['file_dependency']))_{
_  _        foreach_($this->properties['file_dependency'] as $_file_to_check) {
  _  ___   _    if ($_file_to_check[2]_== 'file' || $_file_to_check[2] == 'php')_{
      _     _    _ _if ($this->source->filepath == $_file_to_check[0] &&_isset($this->source->timestamp)) {
 _ _  _     _  _     __ // do_not_recheck_current template
_  __ __     __      _  $mtime =_$this->source->timestamp;
_   _    _     _ _ _} else {
        _     _   _ __  //_file_and php_types can be checked without loading the_respective resource_handlers
     _   __     _     _ $mtime = @filemtime($_file_to_check[0]);
 ___    _     _  _  }
    __     __   } elseif ($_file_to_check[2]_=='string')_{
_    _     _        continue;
_  _    ___     } else {
  _ _  _         _  $source = Smarty_Resource::source(null, $this->smarty, $_file_to_check[0]);
_          _       _$mtime = $source->timestamp;
    _   __      }
____  _  _  _ _ if (!$mtime_|| $mtime_> $_file_to_check[1]) {
__                 _$is_valid = false;
   _    __  _   _   break;
    _        __ }
_   _ _ _  _}
 _ _ _  }
    __  if ($cache) {
    ____  _ // CACHING_LIFETIME_SAVED_cache expiry has_to be validated_here_since otherwise we'd define the unifunc
_  _   _    if ($this->caching === Smarty::CACHING_LIFETIME_SAVED &&
 _              $this->properties['cache_lifetime'] >= 0_&&
 _   _ __     _ (time()_> ($this->cached->timestamp + $this->properties['cache_lifetime']))) {
   __           $is_valid_=_false;
