function smarty_function_referers($params, &$bBlog) { $num = 5; $sep = "<br />"; $mode = "break"; $global = ""; $top = FALSE; extract($params); if ($top) { $ret = toprefererlist($num, $global); } else { $ret = refererlist($num, $global); } if ($mode = 'list') { return tolist($ret); } else { return implode($sep, $ret); } }
<?php // tolist.php // manages and shows lists if (!isset($inIndex) || !$inIndex) { include "../../redirect.php"; } else { tolist(); } function tolist() { global $baseURL, $loggedUser, $listname, $myList, $listname_ss, $FF, $step, $objObject, $objObserver, $objPresentations, $objUtil, $objList, $instDir; echo "<script type=\"text/javascript\" src=\"" . $baseURL . "lib/javascript/presentation.js\"></script>"; echo "<div id=\"main\">"; if ($listname) { $link = $baseURL . "index.php?indexAction=listaction"; reset($_GET); while (list($key, $value) = each($_GET)) { if (!in_array($key, array('addobservationstolist', 'restoreColumns', 'orderColumn', 'loadLayout', 'saveLayout', 'removeLayout', 'indexAction', 'multiplepagenr', 'sort', 'sortdirection', 'showPartOfs', 'noShowName'))) { $link .= '&' . urlencode($key) . '=' . urlencode($value); } } echo "<h4>" . LangSelectedObjectsTitle . " " . $listname_ss . "</h4>"; $content1 = ""; $listowner = $objList->getListOwner(); if ($myList) { // Add a button to remove the list. $content1 = "<a class=\"btn btn-danger\" href=\"" . $baseURL . "index.php?indexAction=listaction&removeList=removeList\"><span class=\"glyphicon glyphicon-remove\" aria-hidden=\"true\"></span> " . LangToListMyListsRemove . "</a> "; // Add a button to rename the list. $content1 .= "<button type=\"button\" title=\"" . LangChangeName . "\" class=\"btn btn-warning\" data-toggle=\"modal\" data-target=\"#changeListName" . str_replace(' ', '_', str_replace(':', '_', $listname)) . "\" >\n\t\t\t\t\t\t\t<span class=\"glyphicon glyphicon-pencil\"></span> " . LangToListRename . "\n \t </button> "; // Add a button to change from private to public or vice-versa