This commit is contained in:
AL-Kateb
2018-01-22 13:53:12 +00:00
parent 7f7d6f1f63
commit 5b1d7a300b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -3317,6 +3317,7 @@ class MYSQLi_DB implements IDbConnection {
crop = IF(crop $sign $crop < 0, 0, IF(crop $sign $crop > maxcrop, maxcrop, crop $sign $crop))
WHERE
wref = " . $vid ;
return mysqli_query( $this->dblink, $q);
}
+1
View File
@@ -46,6 +46,7 @@ if ( isset( $_GET['id'] ) ) {
if ( ! ctype_digit( preg_replace( "/[^a-zA-Z0-9_-]/", "", $_GET['id'] ) ) ) {
$_GET['id'] = "1";
}
$checkBuildings = array( 0, 16, 17, 25, 26, 27 );
if ( $_GET['id'] < 19 || ( isset( $_GET['gid'] ) && ! in_array( $_GET['gid'], $checkBuildings ) ) ) {