************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
function alpha($sortby, $colspan, $return=false)
{
- global $CONFIG;
- if (empty($_GET['offset'])) $_GET['offset'] = "0";
+ global $_CONFIG;
+ if (empty($_GET['offset'])) $_GET['offset'] = 0;
$ADD = "&page=".$_GET['page']."&offset=".$_GET['offset'];
if (!empty($_GET['mode'])) $ADD .= "&mode=".SQL_ESCAPE($_GET['mode']);
/* Creates the list of letters and makes them a link. */
- $alphabet = array(_ALL2, "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", 'N', "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", 'Y', "Z", _OTHERS);
+ $alphabet = array(_ALL2,"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",_OTHERS);
$num = count($alphabet) - 1;
$OUT = "";
while (list($counter, $ltr) = each($alphabet))
if (!empty($_GET['mode'])) $OUT .= "&mode=".SQL_ESCAPE($_GET['mode']);
$OUT .= "&letter=".$ltr."&sortby=".$sortby.$ADD."\">".$ltr."</A>";
}
- if ((($counter / $CONFIG['user_alpha']) == round($counter / $CONFIG['user_alpha'])) && ($counter > 0))
+ if ((($counter / $_CONFIG['user_alpha']) == round($counter / $_CONFIG['user_alpha'])) && ($counter > 0))
{
- $OUT .= " ]<BR>[ ";
+ $OUT .= " ]<br />[ ";
}
elseif ( $counter != $num )
{
function SortLinks($letter, $sortby, $colspan, $return=false)
{
$OUT = "";
- if (empty($_GET['offset'])) $_GET['offset'] = "0";
+ if (empty($_GET['offset'])) $_GET['offset'] = 0;
$ADD = "&page=".$_GET['page']."&offset=".$_GET['offset'];
if (!empty($_GET['mode'])) $ADD .= "&mode=".SQL_ESCAPE($_GET['mode']);
$list['nickname'] = NICKNAME;
}
- foreach ($list as $sort=>$title) {
+ foreach ($list as $sort => $title) {
if ($sortby == $sort) {
$OUT .= "<STRONG>".$title."</STRONG> | ";
} else {