php - Get URL of image Chevereto


Sorry for my english language which is not very good.

I try to link my chevereto images on a homepage of my principal website.

I can rebuilt the image url with the sql when i now the id.

But i want to link to the image page with the infos, embed codes, etc.

The link is like this:

acbR is not in the database Sql. I think it's a string built with a phpscript.

On the code of the script Chevereto i found this fonction:

function chevereto_id($var) {
$base_chars = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // DON'T REPEAT A SINGLE CHAR!

for ($n = 0; $n<strlen($base_chars); $n++) {
    $i[] = substr( $base_chars,$n ,1);

$passhash = hash('sha256', 'c70a053b');
$passhash = (strlen($passhash) < strlen($base_chars)) ? hash('sha512', 'c70a053b') : $passhash;

for ($n=0; $n < strlen($base_chars); $n++) {
    $p[] =  substr($passhash, $n ,1);

array_multisort($p, SORT_DESC, $i);
$base_chars = implode($i);

        $string = '';
        $len = strlen($base_chars);
        while($var >= $len) {
            $mod = bcmod($var, $len);
            $var = bcdiv($var, $len);
            $string = $base_chars[$mod].$string;
        return $base_chars[$var] . $string;


With id number 84 i have to find acbR

but it dont works.

If someone know chevereto script and want to help me, i will be very happy!




Chevereto uses encoded IDs to reference the actual table IDs. Here, check the source.

You need to use this:


(which was just below the code you entered).

People are also looking for solutions to the problem: php - how to fix the error 500


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.