1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-05 14:13:18 -08:00
parent d37d4bf8af
commit 09fb747374
30 changed files with 125 additions and 89 deletions

View File

@@ -27,13 +27,15 @@ if(e_QUERY)
{
$tmp = explode('.', e_QUERY);
$action = $tmp[0];
$action_parent_id = varset(intval($tmp[1], 0));
$action_nl_id = varset(intval($tmp[2], 0));
$parID = intval($tmp[1], 0);
$nlID = intval($tmp[2], 0);
$action_parent_id = varset($parID);
$action_nl_id = varset($nlID);
unset($tmp);
}
$page_size = 10; // Might become a preference setting later on
$text .= "<div style='text-align: center; margin-left: auto; margin-right: auto; width: 100%;'>";
$text = "<div style='text-align: center; margin-left: auto; margin-right: auto; width: 100%;'>";
if (($action <> 'show' && $action <> 'showp') || ($action_parent_id == 0))
{ // Action 'show' displays initial page, 'showp' displays following pages