Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
- *SQL wrapper updated
- Minor fixes
  • Loading branch information
ElfQrin authored Aug 28, 2017
1 parent 784ff5b commit 7690ab8
Show file tree
Hide file tree
Showing 5 changed files with 1,177 additions and 118 deletions.
4 changes: 3 additions & 1 deletion config_x.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
$edge_mcrypt_password='mycryptpassword'; # this password is used for the alternate encryption algorithm as well
$edge_servertz = 0; # server timezone (UTC +/- ?); can be a float number example: -10, +3.5, EST = -6, GMT = 0, CET = 1, etc.
// ini_set("SMTP","localhost"); ini_set("smtp_port",25); # ini_set: overrides php.ini SMTP configuration

$PHP_SELF = $_SERVER['PHP_SELF'];
$REMOTE_ADDR = $_SERVER['REMOTE_ADDR'];
# if ($_SERVER['HTTP_X_FORWARDED_FOR']!='') { $REMOTE_ADDR=$_SERVER['HTTP_X_FORWARDED_FOR']; } # get real IP address from proxies, when possible (on the other hand, this could return LAN IPs)

# Directories
$edge_servr='www.example.com';
Expand Down
2 changes: 1 addition & 1 deletion dbshow.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function shwctrlbuttons() {
if (!$pag || $pag<1) {$pag=1;}
if (!$itmppag) {$itmppag=$_GET['itmppag'];}
if (!eregi("^[0-9]+$",$itmppag)) {$itmppag=$itmppagdef;} # Prevents MySQL injection
if (!$itmppag || $itmppag<1) {$itmppag=$itmppagdef;}
if (!$itmppag || $itmppag<1 || $itmppag>=$itmppagdef) {$itmppag=$itmppagdef;}
# $itmppag=3; # Force items per page

$_frm=$pag*$itmppag-$itmppag;
Expand Down
Loading

0 comments on commit 7690ab8

Please sign in to comment.