cvs: phpdoc-hu /security database.xml globals.xml

From: Date: Wed, 15 Sep 2004 17:31:10 +0000
Subject: cvs: phpdoc-hu /security database.xml globals.xml
Groups: php.doc.hu 
Request: Send a blank email to doc-hu+get-1084@lists.php.net to get a copy of this message
bagilevi Wed Sep 15 13:31:10 2004 EDT Modified files: /phpdoc-hu/security database.xml globals.xml Log: sync http://cvs.php.net/diff.php/phpdoc-hu/security/database.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-hu/security/database.xml diff -u phpdoc-hu/security/database.xml:1.5 phpdoc-hu/security/database.xml:1.6 --- phpdoc-hu/security/database.xml:1.5 Sun Aug 15 13:55:01 2004 +++ phpdoc-hu/security/database.xml Wed Sep 15 13:31:10 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.6 Maintainer: bagilevi Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: bagilevi Status: ready --> <!-- HU: Last EN-Revision before HU-split: 1.48 --> <!-- EN: Last Revision before split: 1.66 --> <!-- EN: splitted from ./index.xml, last change in rev 1.66 --> @@ -128,17 +128,16 @@ // jelszó hash értékének tárolása $query = sprintf("INSERT INTO users(name,pwd) VALUES('%s','%s');", addslashes($username), md5($password)); -$result = pg_exec($connection, $query); +$result = pg_query($connection, $query); // lekérdezés, vajon a felhasználó a helyes jelszót adta-e meg $query = sprintf("SELECT 1 FROM users WHERE name='%s' AND pwd='%s';", addslashes($username), md5($password)); -$result = pg_exec($connection, $query); +$result = pg_query($connection, $query); -if (pg_numrows($result) > 0) { +if (pg_num_rows($result) > 0) { echo "Üdvözöllek, $username!"; -} -else { +} else { echo "$username hitelesítése nem sikerült."; } @@ -184,7 +183,7 @@ $offset = argv[0]; // Vigyázz, nincs beviteli ellenõrzés! $query = "SELECT id, name FROM products ORDER BY name LIMIT 20 OFFSET $offset;"; // PostgreSQL -$result = pg_exec($conn, $query); +$result = pg_query($conn, $query); // MySQL $result = mysql_query($query); http://cvs.php.net/diff.php/phpdoc-hu/security/globals.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-hu/security/globals.xml diff -u phpdoc-hu/security/globals.xml:1.5 phpdoc-hu/security/globals.xml:1.6 --- phpdoc-hu/security/globals.xml:1.5 Sun Aug 15 13:55:01 2004 +++ phpdoc-hu/security/globals.xml Wed Sep 15 13:31:10 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-2"?> -<!-- EN-Revision: 1.4 Maintainer: bagilevi Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: bagilevi Status: ready --> <!-- HU: Last EN-Revision before HU-split: 1.48 --> <!-- EN: Last Revision before split: 1.66 --> <!-- EN: splitted from ./index.xml, last change in rev 1.66 --> @@ -149,6 +149,10 @@ változóidat! Az inicializálatlan változók felfedezéséhez bekapcsolhatod az <function>error_reporting</function>-ot hogy kiírja az <constant>E_NOTICE</constant> szintû hibákat. + </para> + <para> + A <link linkend="faq.misc.registerglobals">FAQ</link>-ban olvashatsz arról, + hogyan lehet emulálni a register_globals On vagy Off értékét. </para> &note.superglobals;

« previous php.doc.hu (#1084) next »