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'); }
<!-- 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 -->
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>
public function getIconUrl() { return UriDispatch::getBaseUri() . 'view/box/img/' . $this->type . '.png'; }
public static function getDefaultAvatarUrl() { return UriDispatch::getBaseUri() . 'user/useravatar/0'; }