scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 140  →  ?path2? @ 141
/file.php
@@ -6,6 +6,7 @@
 
require_once('php/pseudocrypt.php');
require_once('php/functions.php');
require_once('php/ip.php');
require_once('vendor/autoload.php');
 
### Load configuration.
@@ -97,7 +98,7 @@
$q = $db->prepare('REPLACE INTO "uploaders" ("hash", "ip") VALUES(:hash, :ip)');
$q->bindParam(':hash', $file);
$q->bindParam(':ip', $_SERVER['REMOTE_ADDR']);
$q->bindParam(':ip', get_ip_address());
$q->execute();
$db->commit();