From 79e27ee95a6ac1359bb51a7b173188ca66c176ef Mon Sep 17 00:00:00 2001 From: troy Date: Fri, 22 Jul 2022 23:30:10 +0200 Subject: [PATCH] no tabs --- sql.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sql.php b/sql.php index 3652faf..0de81e6 100644 --- a/sql.php +++ b/sql.php @@ -9,13 +9,13 @@ class SQL { public $cnt_set = 0; public function __construct() { require_once ('secret.php'); - + $this->m = $_m; $this->pre = $_m ['pre']; $this->salt = $_m ['salt']; if (SQL_LOG) $this->f = fopen ( 'sql.log', 'w' ); - + $this->h = new mysqli ( $_m ['host'], $_m ['user'], $_m ['pass'], $_m ['data'] ); if ($this->h->connect_errno) { return false; @@ -28,7 +28,7 @@ class SQL { if (SQL_LOG) fputs ( $this->f, str_replace ( array ( "\n", - " " + " " ), array ( ' ', '' @@ -73,9 +73,9 @@ class SQL { $statement->bind_param ( $t, $p ); } $statement->execute (); - + $ret = array (); - + // print_r($statement); if (isset ( $statement->error ) && $statement->error != '') { if (SQL_LOG) @@ -127,7 +127,7 @@ class SQL { if (SQL_LOG) fputs ( $this->f, str_replace ( array ( "\n", - " " + " " ), array ( ' ', '' @@ -176,7 +176,7 @@ class SQL { fputs ( $this->f, $statement->error ); return false; } - + if ($id) { return $statement->insert_id; } else {