D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
var
/
softaculous
/
fud
/
default
/
Filename :
draw_forum_path.inc
back
Copy
<?php /** * copyright : (C) 2001-2010 Advanced Internet Designs Inc. * email : forum@prohost.org * $Id$ * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. **/ require $GLOBALS['FORUM_SETTINGS_PATH'] .'cat_cache.inc'; function draw_forum_path($cid, $fn='', $fid=0, $tn='') { global $cat_par, $cat_cache; $data = ''; do { $data = ' » <a href="[[relativeurl]]/index.php?t=i&cat='.$cid.'&'._rsid.'">'.$cat_cache[$cid][1].'</a>'. $data; } while (($cid = $cat_par[$cid]) > 0); if ($fid) { $data .= ' » <a href="[[relativeurl]]/index.php?t='.t_thread_view.'&frm_id='.$fid.'&'._rsid.'">'.$fn.'</a>'; } else if ($fn) { $data .= ' » <strong>'.$fn.'</strong>'; } return '<a href="[[relativeurl]]/index.php?t=i&'._rsid.'">Home</a>'.$data.($tn ? ' » <strong>'.$tn.'</strong>' : ''); } ?>