Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
- PHP 7 compatible
- Updated functions_db
  • Loading branch information
ElfQrin authored Jan 25, 2018
1 parent 7690ab8 commit 45f44a9
Show file tree
Hide file tree
Showing 6 changed files with 185 additions and 86 deletions.
1 change: 1 addition & 0 deletions bios.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
include('functions_db.php');

$dbxcon=dbx_connect($dbx,$db_host,$db_user,$db_pwd,$db_name);
$dbxcon_aut=$dbxcon; # $dbxcon_aut=dbx_connect($dbx,$db_host,$db_user,$db_pwd,$db_name_auth);

header("Cache-Control: no-cache, no-store, must-revalidate"); // HTTP 1.1
header("Pragma: no-cache"); // HTTP 1.0
Expand Down
2 changes: 1 addition & 1 deletion dbshow.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function shwctrlbuttons() {
if (!$pag) {$pag=$_GET['pag'];}
if (!$pag || $pag<1) {$pag=1;}
if (!$itmppag) {$itmppag=$_GET['itmppag'];}
if (!eregi("^[0-9]+$",$itmppag)) {$itmppag=$itmppagdef;} # Prevents MySQL injection
if (!preg_match("/^[0-9]+$/i",$itmppag)) {$itmppag=$itmppagdef;} # Prevents MySQL injection
if (!$itmppag || $itmppag<1 || $itmppag>=$itmppagdef) {$itmppag=$itmppagdef;}
# $itmppag=3; # Force items per page

Expand Down
Loading

0 comments on commit 45f44a9

Please sign in to comment.