Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Limit results per page (search, view)
  • Loading branch information
ElfQrin authored May 11, 2017
1 parent cee8a6c commit 784ff5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions config_x.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@

$user_email=1; # e-mail output format: 1 = normal, 2 = obfuscated

$reslimdef=true; # Limit results per page
$itmppagdef=10; # Items per page

$srchqminlen=3; # Minimum length in characters of a search string
Expand Down
7 changes: 6 additions & 1 deletion dbshow.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function shwctrlbuttons() {
if (!$action) {$action='view';} # Set default action
if (($action=='view' && $functen['view']!=1) || ($action=='edit' && $functen['edit']!=1) || ($action=='export' && $functen['export']!=1)) {fdisabled(); die();}
if ($action=='export' && !auth_user('EXPORT')) {authdenied(); die();}
if ($action=='export' || $outfmt=='raw') {$reslim=true;} else {$reslim=false;}
if ($action=='export' || $outfmt=='raw') {$reslim=false;} else {$reslim=$reslimdef;}

if (!$outfmt) {
if ($action=='edit') {
Expand Down Expand Up @@ -245,6 +245,11 @@ function shwctrlbuttons() {
echo "<br />\n";
}

if ($reslim) {
prpagnum($pag,$itmppag,$qnr,$pagurl,'?out='.$outfmt.'&put='.$outwhr.'&itmppag='.$itmppag.'&');
echo "<br /><br />";
}

}

$showeft=$showef; # Show/Hide empty field as requested in the configuration. If an output format doesn't allow it, you can override it here
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?
# release information

$project_n='EQ_AddressBook'; $project_v='r2017-04-17'; # fr2016-10-16
$project_n='EQ_AddressBook'; $project_v='r2017-05-11'; # fr2016-10-16

?>

0 comments on commit 784ff5b

Please sign in to comment.