<h3>Laatste aanpassingen</h3>
-[[login/commits pagesize=10]]
+[[login/commits n=10]]
<h2>Aanpassingen</h2>
-[[login/commits pagesize=50]]
+[[login/commits n=50]]
return;
}
-$pagesize = intval(@$_GET['pagesize']) ?: 20;
+$pagesize = intval(@$Place['n'] ?: @$_GET['n']) ?: 20;
$gitcmd = "git log -n $pagesize --pretty='%at\t%an\t%s'";
if ( $offset = intval(@$_GET['start']) ) {
];
}
-if (@$_GET['order'] == 'seen') {
+if (@$Place['order'] == 'seen') {
array_multisort(array_column($logins, 'seen'), SORT_DESC, SORT_NUMERIC, $logins);
}
<?php
include_once 'nieuws.inc.php';
-$articles = ($Page ?: 'nieuws') . '/????';
-shownews($articles, @$_GET['n'] ?: 5);
+$articles = (ltrim($Args, '/') ?: 'nieuws') . '/????';
+shownews($articles, @$Place['n'] ?: 5);
}
elseif (file_exists("$name.php")) {
ob_start();
- $Page = $GLOBALS['Page'];
- $Args = $GLOBALS['Args'];
+ $Page = $GLOBALS['Page'] . $GLOBALS['Args'];
+ $Args = '';
+ $Place = $GLOBALS['Place'];
foreach (explode(' ', $params) as $param) {
if ($set = strpos($param, '=')) {
- $_GET[ substr($param, 0, $set) ] = substr($param, $set + 1);
+ $Place[ substr($param, 0, $set) ] = substr($param, $set + 1);
}
elseif (!empty($param)) {
$Args .= '/'.$param;