scratch

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