Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php class ModelExtensionFeedGoogleImageSiteMap extends Model { public function ..

Decoded Output download

<?php 
 
class ModelExtensionFeedGoogleImageSiteMap extends Model 
{ 
    public function getCategories($data = []) 
    { 
        $query = $this->db->query( 
            "SELECT c.category_id, c.image FROM " . 
                DB_PREFIX . 
                "category c LEFT JOIN " . 
                DB_PREFIX . 
                "category_to_store c2s ON (c.category_id = c2s.category_id) WHERE c.image != '' AND c2s.store_id = '" . 
                (int) $data["store_id"] . 
                "'  ORDER BY c.sort_order" 
        ); 
        return $query->rows; 
    } 
    public function getProducts($data = []) 
    { 
        $query = $this->db->query( 
            "SELECT p.product_id, p.image FROM " . 
                DB_PREFIX . 
                "product as p LEFT JOIN " . 
                DB_PREFIX . 
                "product_to_store p2s ON (p.product_id = p2s.product_id) WHERE p.image != '' AND p2s.store_id = '" . 
                (int) $data["store_id"] . 
                "'" 
        ); 
        return $query->rows; 
    } 
    public function getProductImages($product_id) 
    { 
        $query = $this->db->query( 
            "SELECT pi.product_id, pi.image FROM " . 
                DB_PREFIX . 
                "product_image as pi WHERE pi.image != '' AND pi.product_id = '" . 
                (int) $product_id . 
                "' ORDER BY pi.sort_order ASC" 
        ); 
        return $query->rows; 
    } 
    public function getStores($store_id) 
    { 
        $store_data = $this->cache->get( 
            "ekipisi.store" 
        ); 
        if (!$store_data) { 
            $query = $this->db->query( 
                "SELECT * FROM " . 
                    DB_PREFIX . 
                    "store WHERE store_id = " . 
                    (int) $store_id . 
                    " ORDER BY url" 
            ); 
            $store_data = $query->row; 
            $this->cache->set( 
                "ekipisi.store", 
                $store_data 
            ); 
        } 
        return $store_data; 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php

class ModelExtensionFeedGoogleImageSiteMap extends Model
{
    public function getCategories($data = [])
    {
        $query = $this->db->query(
            "\123\x45\114\x45\103\124\40\143\x2e\x63\141\164\145\147\157\162\x79\x5f\x69\144\54\40\143\56\151\155\x61\x67\145\40\106\122\117\x4d\40" .
                DB_PREFIX .
                "\143\141\164\145\147\x6f\x72\x79\40\x63\40\114\105\106\x54\40\x4a\117\111\116\40" .
                DB_PREFIX .
                "\143\141\x74\x65\147\x6f\x72\x79\x5f\164\x6f\x5f\x73\164\157\x72\145\40\x63\62\x73\40\117\116\40\50\x63\56\143\141\164\145\147\157\x72\x79\137\151\144\x20\x3d\40\143\x32\x73\x2e\x63\141\164\x65\147\157\162\171\x5f\151\144\x29\40\x57\110\x45\x52\105\40\143\56\151\155\141\147\145\40\x21\75\x20\x27\47\40\x41\x4e\104\x20\143\62\163\56\163\164\157\x72\x65\137\151\144\x20\x3d\x20\47" .
                (int) $data["\x73\x74\157\x72\145\x5f\151\x64"] .
                "\47\40\40\117\122\104\x45\x52\x20\x42\131\40\x63\56\x73\x6f\x72\164\x5f\157\x72\x64\x65\x72"
        );
        return $query->rows;
    }
    public function getProducts($data = [])
    {
        $query = $this->db->query(
            "\x53\x45\114\x45\103\124\40\x70\56\x70\x72\x6f\144\165\x63\164\x5f\x69\x64\54\40\x70\56\x69\155\141\147\145\40\106\x52\x4f\115\40" .
                DB_PREFIX .
                "\x70\162\157\x64\x75\143\x74\x20\x61\163\x20\x70\40\x4c\105\x46\x54\x20\x4a\117\x49\x4e\40" .
                DB_PREFIX .
                "\x70\162\157\144\165\143\x74\x5f\x74\157\x5f\x73\x74\x6f\x72\x65\x20\x70\62\x73\40\117\x4e\40\x28\x70\x2e\x70\162\x6f\x64\x75\x63\164\x5f\151\x64\40\75\x20\160\x32\x73\x2e\x70\162\x6f\144\x75\143\x74\137\x69\144\51\x20\x57\x48\105\x52\x45\40\x70\x2e\151\155\x61\x67\x65\x20\x21\x3d\40\x27\47\40\101\116\x44\x20\160\x32\163\56\163\x74\157\x72\x65\137\151\x64\40\x3d\40\x27" .
                (int) $data["\x73\x74\157\x72\x65\137\151\x64"] .
                "\x27"
        );
        return $query->rows;
    }
    public function getProductImages($product_id)
    {
        $query = $this->db->query(
            "\x53\x45\x4c\105\x43\124\40\x70\x69\x2e\160\162\x6f\x64\165\143\x74\x5f\x69\x64\54\x20\160\x69\56\151\155\x61\147\145\40\x46\122\117\115\40" .
                DB_PREFIX .
                "\x70\x72\157\x64\x75\143\x74\137\x69\x6d\x61\147\145\40\x61\x73\x20\x70\x69\x20\x57\x48\105\x52\x45\40\160\151\x2e\x69\x6d\141\147\x65\x20\x21\75\40\x27\47\x20\101\116\104\x20\160\151\x2e\x70\162\x6f\x64\165\x63\164\137\151\x64\40\75\x20\47" .
                (int) $product_id .
                "\x27\x20\117\x52\104\105\122\40\102\x59\40\x70\x69\x2e\x73\157\x72\x74\137\157\x72\144\145\x72\40\101\123\x43"
        );
        return $query->rows;
    }
    public function getStores($store_id)
    {
        $store_data = $this->cache->get(
            "\x65\x6b\151\160\151\163\151\x2e\x73\164\x6f\162\145"
        );
        if (!$store_data) {
            $query = $this->db->query(
                "\123\x45\114\x45\x43\124\x20\x2a\40\x46\122\x4f\115\x20" .
                    DB_PREFIX .
                    "\163\164\x6f\162\145\40\127\x48\x45\122\105\x20\163\164\x6f\x72\x65\x5f\151\144\40\x3d\40" .
                    (int) $store_id .
                    "\40\x4f\x52\104\105\122\x20\102\131\40\165\x72\154"
            );
            $store_data = $query->row;
            $this->cache->set(
                "\145\x6b\x69\x70\x69\163\151\56\163\164\157\x72\145",
                $store_data
            );
        }
        return $store_data;
    }
}

Function Calls

None

Variables

None

Stats

MD5 b84ee03be4c0ed4b230e14769ac27e8a
Eval Count 0
Decode Time 61 ms