| @@ 122-128 (lines=7) @@ | ||
| 119 | $shotAttribution = ''; |
|
| 120 | $result = $xoopsDB->query('SELECT l.lid, l.cid, l.title, l.url, l.logourl, l.status, l.date, l.hits, l.rating, l.votes, l.comments, t.description FROM ' . $xoopsDB->prefix('mylinks_links') . ' l, ' . $xoopsDB->prefix('mylinks_text') . ' t where l.status>0 and l.lid=t.lid ORDER BY date DESC', $xoopsModuleConfig['newlinks'], 0); |
|
| 121 | while (list($lid, $cid, $ltitle, $url, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description) = $xoopsDB->fetchRow($result)) { |
|
| 122 | if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
| 123 | $isadmin = true; |
|
| 124 | $adminlink = "<a href='" . XOOPSMYLINKURL . "/admin/main.php?op=modLink&&fct=mylinks&lid={$lid}'><img src='" . mylinksGetIconURL('edit.png') . "' style='border-width: 0px;' alt='" . _MD_MYLINKS_EDITTHISLINK . "'></a>"; |
|
| 125 | } else { |
|
| 126 | $isadmin = false; |
|
| 127 | $adminlink = ''; |
|
| 128 | } |
|
| 129 | ||
| 130 | $votestring = (1 == $votes) ? _MD_MYLINKS_ONEVOTE : sprintf(_MD_MYLINKS_NUMVOTES, $votes); |
|
| 131 | $ltitle = $myts->htmlSpecialChars($ltitle); |
|
| @@ 218-224 (lines=7) @@ | ||
| 215 | $shotAttribution = ''; |
|
| 216 | $result=$xoopsDB->query($sql, $show, $min); |
|
| 217 | while (list($lid, $cid, $ltitle, $url, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description) = $xoopsDB->fetchRow($result)) { |
|
| 218 | if (!empty($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) { |
|
| 219 | $isadmin = true; |
|
| 220 | $adminlink = "<a href='" . XOOPSMYLINKURL . "/admin/main.php?op=modLink&lid={$lid}'><img src='" . mylinksGetIconURL('edit.png') . "' style='border-width: 0px;' alt='" . _MD_MYLINKS_EDITTHISLINK . "'></a>"; |
|
| 221 | } else { |
|
| 222 | $isadmin = false; |
|
| 223 | $adminlink = ''; |
|
| 224 | } |
|
| 225 | $votestring = (1 == $votes) ? _MD_MYLINKS_ONEVOTE : sprintf(_MD_MYLINKS_NUMVOTES, $votes); |
|
| 226 | $thisCatObj = $mylinksCatHandler->get($cid); |
|
| 227 | $homePath = "<a href='" . XOOPSMYLINKURL . "/index.php'>" . _MD_MYLINKS_MAIN . '</a> : '; |
|