mirror of
https://github.com/pikami/palm-paste.git
synced 2025-12-20 01:09:48 +00:00
Added users system! (They can login and logout)
This commit is contained in:
2
post.php
2
post.php
@@ -12,7 +12,7 @@ function generate_uid () {
|
||||
$chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
||||
$name = '';
|
||||
for ($i = 0; $i < 8; $i++) {
|
||||
$name .= $chars[mt_rand(0, 25)];
|
||||
$name .= $chars[mt_rand(0, 61)];
|
||||
// $chars string length is hardcoded, should use a variable to store it?
|
||||
}
|
||||
// Check if a paste with the same uid does already exist in the database
|
||||
|
||||
Reference in New Issue
Block a user