From: Matteo Nastasi (mop) Date: Thu, 22 May 2014 13:22:18 +0000 (+0200) Subject: trailing spaces removed X-Git-Tag: v4.14.0~2 X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=commitdiff_plain;h=31691c02c1802a699c4595448919cce161834c77 trailing spaces removed --- diff --git a/test/nonblocking.php b/test/nonblocking.php index 4125c86..8085510 100755 --- a/test/nonblocking.php +++ b/test/nonblocking.php @@ -4,7 +4,7 @@ * brisk - test/nonblocking.php * * Copyright (C) 2014 Matteo Nastasi - * mailto: nastasi@alternativeoutput.it + * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it * @@ -98,7 +98,7 @@ function sock_mgmt($sock) } } -function main() +function main() { GLOBAL $blocking_mode; @@ -120,7 +120,7 @@ function main() if (file_exists($file_socket)) { unlink($file_socket); } - + $old_umask = umask(0); if (($list = stream_socket_server($unix_socket, $err, $errs)) === FALSE) { return (FALSE); @@ -128,7 +128,7 @@ function main() umask($old_umask); printf("Blocking mode (listen): %d\n", $blocking_mode); stream_set_blocking($list, $blocking_mode); // Set the stream to non-blocking - + while(1) { printf("\nLOOP BEGIN\n"); if (($new_unix = stream_socket_accept($list)) == FALSE) { @@ -145,4 +145,4 @@ function main() } main(); -?> \ No newline at end of file +?> diff --git a/web/Obj/dbase_pgsql.phh b/web/Obj/dbase_pgsql.phh index 73712ed..4c34c2c 100644 --- a/web/Obj/dbase_pgsql.phh +++ b/web/Obj/dbase_pgsql.phh @@ -160,9 +160,9 @@ class BriskDB function user_add($login, $pass, $email, $type, $disa_reas, $guar_code) { GLOBAL $G_dbpfx; - $usr_sql = sprintf("INSERT INTO %susers (login, pass, email, type, disa_reas, guar_code) + $usr_sql = sprintf("INSERT INTO %susers (login, pass, email, type, disa_reas, guar_code) VALUES ('%s', '%s', '%s', %d, %d, %d) RETURNING *;", - $G_dbpfx, escsql(strtolower($login)), escsql($pass), escsql($email), + $G_dbpfx, escsql(strtolower($login)), escsql($pass), escsql($email), $type, $disa_reas, $guar_code); if (! (($usr_pg = $this->query($usr_sql)) != FALSE && pg_affected_rows($usr_pg) == 1) ) { diff --git a/web/Obj/singlemsg.phh b/web/Obj/singlemsg.phh index e49ef87..7230f34 100644 --- a/web/Obj/singlemsg.phh +++ b/web/Obj/singlemsg.phh @@ -3,7 +3,7 @@ * brisk - singlemsg.php * * Copyright (C) 2014 Matteo Nastasi - * mailto: nastasi@alternativeoutput.it + * mailto: nastasi@alternativeoutput.it * matteo.nastasi@milug.org * web: http://www.alternativeoutput.it * @@ -57,7 +57,7 @@ function singlemsg($title, $msg, $redir_url=FALSE) { - + @@ -75,12 +75,12 @@ function singlemsg($title, $msg, $redir_url=FALSE) {