protected function action()
 {
     try {
         $idntwrkr = $this->uriPath[count($this->uriPath) - 1];
     } catch (Exception $exc) {
         $idntwrkr = BASE_AVATAR_ID;
     }
     //Check file
     $avfile = UriDispatch::getBaseDir() . 'avatar/' . $idntwrkr . '.png';
     $idntwrkr = file_exists($avfile) ? $idntwrkr : BASE_AVATAR_ID;
     //***
     header("Content-type: image/png");
     readfile(UriDispatch::getBaseUri() . 'avatar/' . $idntwrkr . '.png');
 }
Exemple #2
0
    <!-- FANCYBOX -->
      <script type="text/javascript">
        $(document).ready(function() {
          $(".fancybox").fancybox();
        });
      </script>
    <!-- FANCYBOX -->
  </body>
</html>
<!-- MULTINESTEDLIST -->        
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> -->
<script src="<?php 
echo UriDispatch::getBaseUri();
?>
view/box/lib/multinestedlist/multinestedlist.js"></script>
<!-- MULTINESTEDLIST -->
Exemple #3
0
 public static function getAvatarUrl()
 {
     return UriDispatch::getBaseUri() . 'view/box/img/team.png';
 }
<div>
  <a href="<?php 
echo UriDispatch::getBaseUri() . 'user/login';
?>
" title="home">
      <img src="<?php 
echo UriDispatch::getBaseUri() . 'view/box/img/homepage.png';
?>
" class="img_36_36" />
  </a>
</div>

Exemple #5
0
 public function getIconUrl()
 {
     return UriDispatch::getBaseUri() . 'view/box/img/' . $this->type . '.png';
 }
Exemple #6
0
 public static function getDefaultAvatarUrl()
 {
     return UriDispatch::getBaseUri() . 'user/useravatar/0';
 }