403Webshell
Server IP : 172.67.178.83  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/findnextproperty.com/frontend/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/findnextproperty.com/frontend/components/StateHelper.php
<?php

namespace frontend\components;

use yii\helpers\BaseArrayHelper;


class StateHelper extends BaseArrayHelper
{
    public static function getStateName($word)
    {

        $word = strtolower($word);
        //vd($word);
        $arrStates = [
            'al' => "Alabama",
            'ak' => "Alaska",
            'az' => "Arizona",
            'ar' => "Arkansas",
            'ca' => "California",
            'co' => "Colorado",
            'ct' => "Connecticut",
            'de' => "Delaware",
            'dc' => "District  Of Columbia",
            'fl' => "Florida",
            'ga' => "Georgia",
            'hi' => "Hawaii",
            'id' => "Idaho",
            'il' => "Illinois",
            'in' => "Indiana",
            'ia' => "Iowa",
            'ks' => "Kansas",
            'ky' => "Kentucky",
            'la' => "Louisiana",
            'me' => "Maine",
            'md' => "Maryland",
            'ma' => "Massachusetts",
            'mi' => "Michigan",
            'mn' => "Minnesota",
            'ms' => "Mississippi",
            'mo' => "Missouri",
            'mt' => "Montana",
            'ne' => "Nebraska",
            'nv' => "Nevada",
            'nh' => "New Hampshire",
            'nj' => "New Jersey",
            'nm' => "New Mexico",
            'ny' => "New York",
            'nc' => "North Carolina",
            'nd' => "North Dakota",
            'oh' => "Ohio",
            'ok' => "Oklahoma",
            'or' => "Oregon",
            'pa' => "Pennsylvania",
            'ri' => "Rhode  Island",
            'sc' => "South Carolina",
            'sd' => "South Dakota",
            'tn' => "Tennessee",
            'tx' => "Texas",
            'ut' => "Utah",
            'vt' => "Vermont",
            'va' => "Virginia",
            'wa' => "Washington",
            'wv' => "West  Virginia",
            'wi' => "Wisconsin",
            'wy' => "Wyoming"
        ];
        if (array_key_exists(trim($word), $arrStates)) {
            $fullStateName = $arrStates[trim($word)];
        } else {
            $fullStateName = false;
        }
        return $fullStateName;
    }

    public static function getArrStates()
    {
        $arrStates = [
            'al' => "Alabama",
            'ak' => "Alaska",
            'az' => "Arizona",
            'ar' => "Arkansas",
            'ca' => "California",
            'co' => "Colorado",
            'ct' => "Connecticut",
            'de' => "Delaware",
            'dc' => "District  Of Columbia",
            'fl' => "Florida",
            'ga' => "Georgia",
            'hi' => "Hawaii",
            'id' => "Idaho",
            'il' => "Illinois",
            'in' => "Indiana",
            'ia' => "Iowa",
            'ks' => "Kansas",
            'ky' => "Kentucky",
            'la' => "Louisiana",
            'me' => "Maine",
            'md' => "Maryland",
            'ma' => "Massachusetts",
            'mi' => "Michigan",
            'mn' => "Minnesota",
            'ms' => "Mississippi",
            'mo' => "Missouri",
            'mt' => "Montana",
            'ne' => "Nebraska",
            'nv' => "Nevada",
            'nh' => "New Hampshire",
            'nj' => "New Jersey",
            'nm' => "New Mexico",
            'ny' => "New  York",
            'nc' => "North Carolina",
            'nd' => "North Dakota",
            'oh' => "Ohio",
            'ok' => "Oklahoma",
            'or' => "Oregon",
            'pa' => "Pennsylvania",
            'ri' => "Rhode  Island",
            'sc' => "South Carolina",
            'sd' => "South Dakota",
            'tn' => "Tennessee",
            'tx' => "Texas",
            'ut' => "Utah",
            'vt' => "Vermont",
            'va' => "Virginia",
            'wa' => "Washington",
            'wv' => "West  Virginia",
            'wi' => "Wisconsin",
            'wy' => "Wyoming"
        ];
        return $arrStates;
    }

    public static function getStateWordsAsArray()
    {
        $arrStates = [
            '1' => 'al',
            '2' => 'ak',
            '3' => 'az',
            '4' => 'ar',
            '5' => 'ca',
            '6' => 'co',
            '7' => 'ct',
            '8' => 'de',
            '9' => 'dc',
            '10' => 'fl',
            '11' => 'ga',
            '12' => 'hi',
            '13' => 'id',
            '14' => 'il',
            '15' => 'in',
            '16' => 'ia',
            '17' => 'ks',
            '18' => 'ky',
            '19' => 'la',
            '20' => 'me',
            '21' => 'md',
            '22' => 'ma',
            '23' => 'mi',
            '24' => 'mn',
            '25' => 'ms',
            '26' => 'mo',
            '27' => 'mt',
            '28' => 'ne',
            '29' => 'nv',
            '30' => 'nh',
            '31' => 'nj',
            '32' => 'nm',
            '33' => 'ny',
            '34' => 'nc',
            '35' => 'nd',
            '36' => 'oh',
            '37' => 'ok',
            '38' => 'or',
            '39' => 'pa',
            '40' => 'ri',
            '41' => 'sc',
            '42' => 'sd',
            '43' => 'tn',
            '44' => 'tx',
            '45' => 'ut',
            '46' => 'vt',
            '47' => 'va',
            '48' => 'wa',
            '49' => 'wv',
            '50' => 'wi',
            '51' => 'wy'
        ];
        return $arrStates;
    }

    public static function getStateWord($fullStateName)
    {
        $arrStates = [
            'al' => "Alabama",
            'ak' => "Alaska",
            'az' => "Arizona",
            'ar' => "Arkansas",
            'ca' => "California",
            'co' => "Colorado",
            'ct' => "Connecticut",
            'de' => "Delaware",
            'dc' => "District  Of Columbia",
            'fl' => "Florida",
            'ga' => "Georgia",
            'hi' => "Hawaii",
            'id' => "Idaho",
            'il' => "Illinois",
            'in' => "Indiana",
            'ia' => "Iowa",
            'ks' => "Kansas",
            'ky' => "Kentucky",
            'la' => "Louisiana",
            'me' => "Maine",
            'md' => "Maryland",
            'ma' => "Massachusetts",
            'mi' => "Michigan",
            'mn' => "Minnesota",
            'ms' => "Mississippi",
            'mo' => "Missouri",
            'mt' => "Montana",
            'ne' => "Nebraska",
            'nv' => "Nevada",
            'nh' => "New Hampshire",
            'nj' => "New Jersey",
            'nm' => "New Mexico",
            'ny' => "New York",
            'nc' => "North Carolina",
            'nd' => "North Dakota",
            'oh' => "Ohio",
            'ok' => "Oklahoma",
            'or' => "Oregon",
            'pa' => "Pennsylvania",
            'ri' => "Rhode  Island",
            'sc' => "South Carolina",
            'sd' => "South Dakota",
            'tn' => "Tennessee",
            'tx' => "Texas",
            'ut' => "Utah",
            'vt' => "Vermont",
            'va' => "Virginia",
            'wa' => "Washington",
            'wv' => "West  Virginia",
            'wi' => "Wisconsin",
            'wy' => "Wyoming"
        ];

        $key = array_search($fullStateName, $arrStates);

        if ($key) {
            return $key;
        } else {
            return false;
        }

    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit