// // ------------------------------------------------------------------------- // // Original Author: James Knickelbein // Author Website : http://www.journeymilwaukee.com // Licence Type : GPL // ------------------------------------------------------------------------- // include_once('../../mainfile.php'); include_once('./cache/config.php'); include_once("header.php"); $lid = intval($_GET['lid']); $db->query('UPDATE '.$db->prefix('adresses_adresses').' SET hits=hits+1 WHERE lid='.$lid.' AND status>0'); $result = $db->query('SELECT lid FROM '.$db->prefix('adresses_adresses').' WHERE lid='.$lid.' AND status>0'); list($lid) = $db->fetchRow($result); $mytree = new XoopsTree($db->prefix("adresses_cat"), "cid", "pid"); $lid = intval($_GET['lid']); $sql = " SELECT lid, cid, title, url, homepage, adres, zip, city, country, phone, mobile, fax, email, opentime, banner, logourl, status, date, hits, rating, votes, description FROM ".$db->prefix("adresses_adresses")." WHERE lid=$lid AND status>0"; $result = $db->query($sql); if ($db->getRowsNum($result) != 1) { redirect_header('index.php'); exit(); } include_once(XOOPS_ROOT_PATH."/header.php"); OpenTable(); echo ""._MI_MYADRESSES_NAME.""; list($lid, $cid, $title, $url, $homepage, $adres, $zip, $city, $country, $phone, $mobile, $fax, $email, $opentime, $banner, $logourl, $status, $time, $hits, $rating, $votes, $description) = $db->fetchRow($result); echo "
| "; $pathstring = ""._MODIFYCATEGORY." : "; $nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?"); $pathstring .= $nicepath; echo "".$pathstring." |