HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/jairicem/alfijiri.com/app/controllers/admin/Misc.php
<?php

defined('BASEPATH') or exit('No direct script access allowed');

class Misc extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
    }

    public function barcode($product_code = null, $bcs = 'code128', $height = 40, $text = true, $encoded = false)
    {
        $product_code = $encoded ? $this->sma->base64url_decode($product_code) : $product_code;
        if ($this->Settings->barcode_img) {
            header('Content-Type: image/png');
        } else {
            header('Content-type: image/svg+xml');
        }
        echo $this->sma->barcode($product_code, $bcs, $height, $text, false, true);
    }

    public function index()
    {
        show_404();
    }
}