Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestbuffington committed Feb 6, 2023
1 parent ca6fe87 commit 1235202
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
10 changes: 9 additions & 1 deletion admin/modules/nukesentinel/ABTrackedPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@
CloseTable();

OpenTable();

if(isset($ab_config['track_perpage']))
$perpage = $ab_config['track_perpage'];
if($perpage == 0) { $perpage = 25; }

if($perpage == 0)
{
$perpage = 25;
}
if(!isset($min)) $min=0;
if(!isset($max)) $max=$min+$perpage;
if(!isset($column)) $column = '';
Expand Down Expand Up @@ -85,6 +91,8 @@
echo '</tr>'."\n";
}
echo '</table>'."\n";
if(!isset($totalselected))
$totalselected = 0;
abadminpagenums($op, $totalselected, $perpage, $max, $column, $direction);
CloseTable();
include_once(NUKE_BASE_DIR.'footer.php');
Expand Down
11 changes: 9 additions & 2 deletions admin/modules/nukesentinel/ABTrackedUsersPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,15 @@
CloseTable();

OpenTable();
//$perpage = $ab_config['track_perpage'];
if($perpage == 0) { $perpage = 25; }

if(isset($ab_config['track_perpage']))
$perpage = $ab_config['track_perpage'];

if($perpage == 0)
{
$perpage = 25;
}

if(!isset($min)) $min=0;
if(!isset($max)) $max=$min+$perpage;
if(!isset($column)) $column='';
Expand Down
14 changes: 9 additions & 5 deletions modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@

$module = $db->sql_ufetchrow('SELECT `title`, `active`, `view`, `blocks`, `custom_title`, `groups` FROM `'.$prefix.'_modules` WHERE `title`="'.Fix_Quotes($name).'"');

$module_name = $module['title'];
$module_name = $module['title'] ?? '';

if ($module_name == 'Your_Account'
|| $module_name == main_module()):
$module['active'] = true;
$view = 0;
else:
$view = $module['view'];
else:
$view = $module['view'] ?? '';
endif;

if($module['active'] || is_mod_admin($module_name)):
if(isset($module['active']) || is_mod_admin($module_name)):

if(!isset($file) OR $file != $_REQUEST['file']):
$file='index';
Expand All @@ -94,7 +94,11 @@
die('You are so cool...');
endif;

$showblocks = $module['blocks'];
$showblocks = $module['blocks'] ?? '';

if(!isset($module['custom_title']))
$module['custom_title'] = '';

$module_title = ($module['custom_title'] != '') ? $module['custom_title'] : str_replace('_', ' ', $module_name);
$modpath = isset($module['title']) ? NUKE_MODULES_DIR.$module['title']."/$file.php" : NUKE_MODULES_DIR.$name."/$file.php";
$groups = (!empty($module['groups'])) ? $groups = explode('-', $module['groups']) : '';
Expand Down
2 changes: 1 addition & 1 deletion themes/BlackJack/css3_menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
echo ' <li><a href="'.HTTPS.'modules.php?name=Forums&file=search">Forums Search</a></li>';
echo ' <li><a href="'.HTTPS.'modules.php?name=Forums&file=search&search_id=newposts">New Posts</a></li>';
echo ' <li><a href="'.HTTPS.'modules.php?name=Forums&file=search&search_id=unanswered">Unanswered Posts</a></li>';
echo ' <li><a href="'.HTTPS.'modules.php?name=Your_Account&redirect=search&search_id=egosearch">My Posts</a></li>';
echo ' <li><a href="'.HTTPS.'modules.php?name=Forums&file=search&search_id=egosearch">My Posts</a></li>';
echo ' <li>---------------------------------</li>';
echo ' <li><a style="color: pink;" href="'.HTTPS.'modules.php?name=Forums&file=viewonline">Who is Online</a></li>';
echo ' <li><a style="color: red;" href="'.HTTPS.'modules.php?name=Forums&file=rules">Forum Rules</a></li>';
Expand Down

0 comments on commit 1235202

Please sign in to comment.