• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Please help me. Random Characters

I take it the #205 issue request 5h ago comes from you as well? Maybe wait a bit for the developer to give you an "official" solution before hacking around the code?

Regards!
 
The programmer does not answer, there have already been such questions with him and silence, I wrote only to him prophylactically.
 
This is a very raw, quick heads up about what to do

Alter table "pastes" and add bew field "unique_id" type text
in your paste creation you may add something like
PHP:
function uuid() {
$uid = random_bytes(16);
// check if uid already exists in database
if (check_uid($uid)) {
  uuid();
}
return $uid;
}

function check_uid($uid = null) {
$query  = "SELECT * FROM pastes WHERE id='$uid'";
$result = mysqli_query($con, $query);
if (mysqli_num_rows($result) > 0) {
  // return true
   return true;
}
return false;
}

Then add $uid into mysql query to save into database, also when listing your pastes instead of $id use $unique_id from db
 
  • Like
Reactions: nulled1986
Oh my god that is where and what because I'm already lost :)
As I said, it's only a heads-up not the full refined code to add. You may consider it a starting point (big one).
As you can see in my signature I rarely offer full solutions for production sites for 2 reasons:
1. My free time is totally limited so I can rarely do free complete solutions
2. I do consider that whoever starts on its own has at least medium knowledge of programming and debugging.

You can either ask the developer to add it, hire a programmer to do it, or do it yourself.
 
  • Like
Reactions: nulled1986

Latest posts

Forum statistics

Threads
79,454
Messages
1,142,796
Members
248,417
Latest member
Chrozic
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock