Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto NGdNo; zHBhj: if (!function_exists("\x64\x69\171\x5f\x67\x65\164\137\141\154\x6c\137\..
Decoded Output download
<? goto NGdNo; zHBhj: if (!function_exists("diy_get_all_tables")) { function diy_get_all_tables($connection = null) { return collect(DB::connection($connection)->select("show tables"))->map(function ($val) { foreach ($val as $tbl) { return $tbl; } }); } } goto im328; NGdNo: if (!function_exists("diy_filter_data_normalizer")) { function diy_filter_data_normalizer($filters = array()) { $filterData = array(); foreach ($filters as $filter_data) { if (is_array($filter_data["value"])) { foreach ($filter_data["value"] as $filterValues) { $filterData[$filter_data["field_name"]]["value"][][] = $filterValues; } } else { $filterData[$filter_data["field_name"]]["value"][][] = $filter_data["value"]; } } $_filters = array(); foreach ($filterData as $node => $nodeValues) { $_filters[$node]["field_name"] = $node; $_filters[$node]["operator"] = "="; foreach ($nodeValues["value"] as $values) { $_filters[$node]["value"][] = $values[0]; } } unset($filterData); foreach ($_filters as $dataFilters) { $filterData[] = $dataFilters; } return $filterData; } } goto rEBiu; pAJHu: if (!function_exists("create_action_buttons")) { function create_action_buttons($view = false, $edit = false, $delete = false, $add_action = array(), $as_root = false) { $deleteURL = false; $delete_id = false; $buttonDelete = false; $buttonDeleteMobile = false; $restoreDeleted = false; if (false !== $delete) { $deletePath = explode("/", $delete); $deleteFlag = end($deletePath); $delete_id = intval($deletePath[count($deletePath) - 2]); $deleteURL = str_replace("@index", "@destroy", diy_current_route()->getActionName()); $buttonDeleteAttribute = "class="btn btn-danger btn-xs" data-toggle="tooltip" data-placement="top" data-original-title="Delete""; $iconDeleteAttribute = "fa fa-times"; if ("restore_deleted" === $deleteFlag) { $restoreDeleted = true; $buttonDeleteAttribute = "class="btn btn-warning btn-xs" data-toggle="tooltip" data-placement="top" data-original-title="Restore""; $iconDeleteAttribute = "fa fa-recycle"; } $delete_action = "<form action="" . action($deleteURL, $delete_id) . "" method="post" class="btn btn_delete" style="padding:0 !important">" . csrf_field() . "<input name="_method" type="hidden" value="DELETE">"; $buttonDelete = $delete_action . "<button " . $buttonDeleteAttribute . " type="submit"><i class="" . $iconDeleteAttribute . ""></i></button></form>"; $buttonDeleteMobile = "<li><a href="" . $delete . "" class="tooltip-error btn_delete" data-rel="tooltip" title="Delete"><span class="red"><i class="fa fa-trash-o bigger-120"></i></span></a></li>"; } $buttonView = false; $buttonViewMobile = false; if (false != $view) { if (true === $restoreDeleted) { $viewVisibilityAttr = "readonly disabled class="btn btn-default btn-xs btn_view" data-toggle="tooltip" data-placement="top" data-original-title="View detail""; } else { $viewVisibilityAttr = "href="" . $view . "" class="btn btn-success btn-xs btn_view" data-toggle="tooltip" data-placement="top" data-original-title="View detail""; } $buttonView = "<a " . $viewVisibilityAttr . "><i class="fa fa-eye"></i></a>"; $buttonViewMobile = "<li class="btn_view"><a href="" . $view . "" class="tooltip-info" data-rel="tooltip" title="View"><span class="blue"><i class="fa fa-search-plus bigger-120"></i></span></a></li>"; } $buttonEdit = false; $buttonEditMobile = false; if (false != $edit) { if (true === $restoreDeleted) { $editVisibilityAttr = " readonly disabled class="btn btn-default btn-xs btn_edit" data-toggle="tooltip" data-placement="top" data-original-title="Edit""; } else { $editVisibilityAttr = " href="" . $edit . "" class="btn btn-primary btn-xs btn_edit" data-toggle="tooltip" data-placement="top" data-original-title="Edit""; } $buttonEdit = "<a " . $editVisibilityAttr . "><i class="fa fa-pencil"></i></a>"; $buttonEditMobile = "<li class="btn_edit"><a href="" . $edit . "" class="tooltip-success" data-rel="tooltip" title="Edit"><span class="green"><i class="fa fa-pencil-square-o bigger-120"></i></span></a></li>"; } $buttonNew = ''; $buttonNewMobile = ''; if (true === is_array($add_action)) { if (count($add_action) >= 1) { foreach ($add_action as $new_action_name => $new_action_values) { $btn_name = $new_action_name; $row_name = camel_case($new_action_name); $row_url = $new_action_values["url"]; $row_color = null; $row_icon = null; if (!empty($new_action_values["color"])) { $row_color = $new_action_values["color"]; } if (!empty($new_action_values["icon"])) { $row_icon = $new_action_values["icon"]; } if (true === $restoreDeleted) { $actionVisibilityAttr = " readonly disabled class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" data-original-title="" . $row_name . """; } else { $actionVisibilityAttr = " href="" . $row_url . "" class="btn " . $btn_name . " btn-" . $row_color . " btn-xs" data-toggle="tooltip" data-placement="top" data-original-title="" . $row_name . """; } $buttonNew .= "<a" . $actionVisibilityAttr . "><i class="fa fa-" . $row_icon . ""></i></a>"; $buttonNewMobile .= "<li><a href="" . $row_url . "" class="tooltip-error" data-rel="tooltip" title="" . $row_name . ""><span class="red"><i class="fa fa-" . $row_icon . " bigger-120"></i></span></a></li>"; } } } $buttons = $buttonView . $buttonEdit . $buttonDelete . $buttonNew; $buttonsMobile = $buttonViewMobile . $buttonEditMobile . $buttonDeleteMobile . $buttonNewMobile; return "<div class="action-buttons-box"><div class="hidden-sm hidden-xs action-buttons">" . $buttons . "</div><div class="hidden-md hidden-lg"><div class="inline pos-rel"><button class="btn btn-minier btn-yellow dropdown-toggle" data-toggle="dropdown" data-position="auto"><i class="fa fa-caret-down icon-only bigger-120"></i></button><ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">" . $buttonsMobile . "</ul></div></div></div>"; } } goto ucvvD; LDQpR: if (!function_exists("diy_temp_table")) { function diy_temp_table($table_name, $sql, $strict = true, $conn = "mysql") { $strictConfig = config("database.connections.{$conn}.strict"); $table_name = str_replace("temp_", '', $table_name); if (Illuminate\Support\Facades\Schema::hasTable("temp_{$table_name}")) { Illuminate\Support\Facades\Schema::dropIfExists("temp_{$table_name}"); } if (false === $strict) { Illuminate\Support\Facades\DB::purge($conn); config()->set("database.connections.{$conn}.strict", $strict); Illuminate\Support\Facades\DB::reconnect(); } diy_query($sql, "SELECT"); Illuminate\Support\Facades\DB::unprepared("CREATE TABLE temp_{$table_name} {$sql}"); if (false === $strict) { Illuminate\Support\Facades\DB::purge($conn); config()->set("database.connections.{$conn}.strict", $strictConfig); Illuminate\Support\Facades\DB::reconnect(); } } } goto sE7M6; Z3bib: if (!function_exists("diy_clear_json")) { function diy_clear_json($data) { $json = str_replace(""data"", "data", $data); $json = str_replace(""name"", "name", $json); $json = str_replace(""", "'", $json); return $json; } } goto R9UDr; Xjdn9: if (!function_exists("diy_get_table_column_type")) { function diy_get_table_column_type($table_name, $field_name, $db_connection = "mysql") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->getColumnType($table_name, $field_name); } } goto LDQpR; oPKVz: if (!function_exists("diy_set_formula_columns")) { function diy_set_formula_columns($columns, $data) { arsort($data); $key_columns = array_flip($columns); $f_node = array(); $c_action = false; if (!empty($key_columns["action"])) { $c_action = true; } $c_lists = false; if (isset($key_columns["number_lists"])) { $c_lists = true; } foreach ($data as $formula_data) { $for_node = $formula_data["node_location"]; $f_node[$formula_data["name"]]["field_label"] = $formula_data["label"]; if (empty($for_node)) { $f_node[$formula_data["name"]]["field_name"] = end($formula_data["field_lists"]); } else { if ("first" === $for_node) { $f_node[$formula_data["name"]]["field_name"] = $columns[0]; } elseif ("last" === $for_node) { $f_node[$formula_data["name"]]["field_name"] = $columns[array_key_last($columns)]; } else { $f_node[$formula_data["name"]]["field_name"] = $for_node; } } $f_node[$formula_data["name"]]["field_key"] = $key_columns[$f_node[$formula_data["name"]]["field_name"]]; $f_node[$formula_data["name"]]["node_after"] = $formula_data["node_after"]; $f_node[$formula_data["name"]]["node_location"] = $formula_data["node_location"]; } foreach ($f_node as $key => $fdata) { if ("first" === $fdata["node_location"]) { if (true === $c_lists) { diy_array_insert($columns, intval($fdata["field_key"]) + 1, $key); } else { diy_array_insert($columns, intval($fdata["field_key"]), $key); } } elseif ("last" === $fdata["node_location"]) { if (true === $fdata["node_after"]) { if (true === $c_action) { diy_array_insert($columns, intval($fdata["field_key"]), $key); } else { array_push($columns, $key); } } else { diy_array_insert($columns, intval($fdata["field_key"]), $key); } } else { if (true === $fdata["node_after"]) { diy_array_insert($columns, intval($fdata["field_key"]) + 1, $key); } else { diy_array_insert($columns, intval($fdata["field_key"]), $key); } } } return $columns; } } goto ICuli; vaXd5: if (!function_exists("diy_check_table_columns")) { function diy_check_table_columns($table_name, $field_name, $db_connection = "mysql") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->hasColumn($table_name, $field_name); } } goto YaxnA; byY4n: if (!function_exists("diy_generate_table")) { function diy_generate_table($title = false, $title_id = false, $header = array(), $body = array(), $attributes = array(), $numbering = false, $containers = true, $server_side = false, $server_side_custom_url = false) { $datatableClass = "IncoDIY-table table animated fadeIn table-striped table-default table-bordered table-hover dataTable repeater display responsive nowrap"; if (false !== $attributes && is_array($attributes)) { if (empty($attributes)) { $_attributes = array("id" => "datatable-{$title_id}", "class" => $datatableClass); } else { if (empty($attributes["id"])) { $_attributes["id"] = "datatable-{$title_id}"; } if (empty($attributes["class"])) { $_attributes["class"] = $datatableClass; } foreach ($attributes as $attrField => $attrValue) { $_attributes[$attrField] = $attrValue; } } } else { $_attributes = array("id" => "datatable-{$title_id}", "class" => $datatableClass); } $attributes = " " . rtrim(diy_attributes_to_string($_attributes)); $hNumber = false; $hEmpty = false; $_header = false; if (true === $numbering) { $number = array("number_lists"); $header = array_merge($number, $header); } if (false !== $header) { $_merge = array(); $_header = "<thead><tr>"; foreach ($header as $hIndex => $hList) { if (is_array($hList)) { $_merge[$hIndex] = $hList["merge"]; } if (is_array($hList)) { $_header .= tableColumn($header, $hIndex, $hList["column"]); } else { $_header .= tableColumn($header, $hIndex, $hList); } } $_header .= "</tr>"; if (!empty($_merge)) { foreach ($_merge as $_mergedata) { foreach ($_mergedata as $idx => $mdList) { $_header .= tableColumn($_mergedata, $idx, $mdList); } } } $_header .= "</thead>"; } $_body = false; $num = false; if (false === $server_side) { if (false !== $body) { $_body = "<tbody>"; $array_keys = array_keys($body); $first_key = reset($array_keys); foreach ($body as $bIndex => $bLists) { $rowClickAction = false; if (!empty($bLists["row_data_url"]) && false !== $bLists["row_data_url"]) { $rowClickAction = " onclick="location.href='" . $bLists["row_data_url"] . "'" class="row-list-url""; } unset($bLists["row_data_url"]); $_body .= "<tr>"; for ($row = 0; $row <= count($body); $row++) { if ($bIndex === $row) { if (true === $numbering) { if ($first_key <= 0) { $numLists = intval($row) + 1; } else { $numLists = intval($row); } $_body .= "<td class="center">{$numLists}</td>"; } foreach ($bLists as $index => $list) { $row_attr = false; if ("action" === $index) { $rowClickAction = false; } if (true === str_contains($list, "{:}")) { $reList = explode("{:}", $list); $list = $reList[0]; if (isset($reList[1])) { $rowAttr = explode("|", $reList[1]); $row_attr = " " . implode(" ", $rowAttr); } $row_list = "<td{$row_attr}{$rowClickAction}>{$list}</td>"; } else { $row_list = "<td{$rowClickAction}>{$list}</td>"; } if ($hNumber === $index) { if (is_empty($list)) { $num = intval($row) + 1; } else { $num = $list; } $_body .= "<td class="center">{$num}</td>"; } else { if ($hEmpty === $index) { $_body .= "<td class="center">{$list}</td>"; } else { if ("active" === $index) { $_list = set_active_value($list); $_body .= "<td align="center">{$_list}</td>"; } else { if ("flag_status" === $index) { $_list = internal_flag_status($list); $_body .= "<td align="center"{$rowClickAction}>{$_list}</td>"; } else { if ("request_status" === $index) { $_list = request_status(true, $list); $_body .= "<td align="center">{$_list}</td>"; } else { if ("update_status" === $index) { $_list = active_box(); $_body .= "<td align="center">{$_list[$list]}</td>"; } else { if ("action" === $index) { $_body .= "<td align="center"{$rowClickAction}>{$list}</td>"; } else { $_body .= $row_list; } } } } } } } } } } $_body .= "</tr>"; } $_body .= "</tbody>"; } else { $_body = "<tbody><tr><td>Found no data</td></tr></tbody>"; } } else { $_body = null; } $table = "<table{$attributes}>{$_header}{$_body}</table>"; return $table; } function tableColumn($header, $hIndex, $hList) { $hNumber = false; $hCheck = false; $hEmpty = false; $_header = false; $HKEY = false; $HVAL = false; if (is_array($hList)) { $keyList = array_keys($hList); $HKEY = $keyList[0]; $HVAL = $hList[$HKEY]; } else { $HKEY = $hList; $HVAL = trim(ucwords(str_replace("_", " ", $HKEY))); } $hList = $HKEY; $hLabel = $HVAL; $hListFields = $hList; if (true === str_contains($hList, "|")) { $newHList = explode("|", $hList); $hList = $newHList[1]; $hListFields = $hList; } if (true === str_contains($hList, ".")) { $newHList = explode(".", $hList); $hList = $newHList[0]; } $idHeader = $header[$hIndex]; if (is_array($idHeader)) { $fHead = array_keys($idHeader); $idHeader = $fHead[0]; } if ("no" === strtolower($idHeader) || "id" === strtolower($idHeader) || "nik" === strtolower($idHeader)) { $hNumber = $hIndex; } if (true === diy_string_contained($hList, "<input type="checkbox"")) { $hCheck = $hIndex; } if (is_empty($hList)) { $hEmpty = $hIndex; } $hList = trim(ucwords(str_replace("_", " ", $hList))); if ($hNumber === $hIndex) { $_header .= "<th class="center" width="50">{$hList}</th>"; } else { if (true === str_contains($hList, ":changeHeaderName:")) { $newHList = explode(":changeHeaderName:", $hList); $hList = ucwords($newHList[1]); $hListFields = $hList; $_header .= "<th class="center" width="120">{$hListFields}</th>"; } else { if ($hCheck === $hIndex) { $_header .= "<th width="50">{$hList}</th>"; } else { if ($hEmpty === $hIndex) { $_header .= "<th class="center" width="120">{$hList}</th>"; } else { if ("Action" === $hList) { $_header .= "<th class="center" width="120">{$hList}</th>"; } else { if ("Active" === $hList) { $_header .= "<th class="center" width="120">{$hList}</th>"; } else { if ("Flag Status" === $hList) { $_header .= "<th class="center" width="120">{$hList}</th>"; } else { if ("number_lists" === strtolower($idHeader)) { $_header .= "<th class="center" width="30">No</th><th class="center" width="30">ID</th>"; } else { $row_attr = false; if (true === str_contains($hList, "{:}")) { $reList = explode("{:}", $hList); $hList = $reList[0]; if (isset($reList[1])) { $rowAttr = explode("|", $reList[1]); $row_attr = " " . implode(" ", $rowAttr); } $row_list = "<th{$row_attr}>{$hList}</th>"; } else { $row_list = "<th>{$hLabel}</th>"; } $_header .= $row_list; } } } } } } } } return $_header; } } goto S5NAF; im328: if (!function_exists("diy_set_connection_separator")) { function diy_set_connection_separator($separator = "--diycon--") { return $separator; } } goto vaXd5; Tl3C5: if (!function_exists("diy_add_action_button_by_string")) { function diy_add_action_button_by_string($action, $is_array = false) { $addActions = array(); if (is_bool($action)) { if (true === $action) { $addActions["view"]["color"] = "success"; $addActions["view"]["icon"] = "eye"; $addActions["edit"]["color"] = "primary"; $addActions["edit"]["icon"] = "pencil"; $addActions["delete"]["color"] = "danger"; $addActions["delete"]["icon"] = "times"; } } else { if (diy_string_contained($action, "|")) { $str_action = explode("|", $action); $str_name = reset($str_action); } else { $str_action = $action; $str_name = false; } $actionAttr = array(); if (count($str_action) >= 2) { $actionAttr["color"] = false; if (isset($str_action[1])) { $actionAttr["color"] = $str_action[1]; } $actionAttr["icon"] = false; if (isset($str_action[2])) { $actionAttr["icon"] = $str_action[2]; } $addActions[$str_name] = $actionAttr; } else { $addActions[$action] = $action; } } return $addActions; } } goto pAJHu; YaxnA: if (!function_exists("diy_get_table_columns")) { function diy_get_table_columns($table_name, $db_connection = "mysql") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->getColumnListing($table_name); } } goto Xjdn9; ICuli: if (!function_exists("diy_modal_content_html")) { function diy_modal_content_html($name, $title, $elements) { $buttonID = str_replace("_cdyFILTERmodalBOX", "_submitFilterButton", $name); $html = "<div class="modal-body">"; $html .= "<div id="" . $name . "">"; $html .= implode('', $elements); $html .= "</div>"; $html .= "</div>"; $html .= "<div class="modal-footer">"; $html .= "<div class="diy-action-box">"; $html .= "<button type="reset" id="" . $name . "-cancel" class="btn btn-danger btn-slideright pull-right" data-dismiss="modal">Cancel</button>"; $html .= "<button id="" . $buttonID . "" class="btn btn-primary btn-slideright pull-right" type="submit">"; $html .= "<i class="fa fa-filter"></i> Filter Data " . $title; $html .= "</button>"; $html .= "<button id="exportFilterButton" . $name . "" class="btn btn-info btn-slideright pull-right btn-export-csv hide" type="button">Export to CSV</button>"; $html .= "</div>"; $html .= "</div>"; return $html; } } goto Z3bib; ucvvD: if (!function_exists("diy_table_row_attr")) { function diy_table_row_attr($str_value, $attributes) { $attr = $attributes; if (is_array($attributes)) { $attribute = array(); foreach ($attributes as $key => $value) { $attribute[] = "{$key}="{$value}""; } $attr = implode(" ", $attribute); } return "{$str_value}{:}{$attr}"; } } goto byY4n; sE7M6: if (!function_exists("diy_model_processing_table")) { function diy_model_processing_table($data, $name) { if (!empty($data[$name])) { $model = $data[$name]["model"]; if (false === $data[$name]["strict"]) { diy_db("purge", $data[$name]["connection"]); config()->set("database.connections.{$data[$name]["connection"]}.strict", $data[$name]["strict"]); diy_db("reconnect"); } $model->{$data[$name]["function"]}(); } } } goto oPKVz; rEBiu: if (!function_exists("diy_get_model_table")) { function diy_get_model_table($model, $find = false) { $model = diy_get_model($model, $find); return $model->getTable(); } } goto zHBhj; R9UDr: if (!function_exists("diy_table_action_button")) { function diy_table_action_button($row_data, $field_target = "id", $current_url, $action, $removed_button = null) { $privileges = session()->all()["privileges"]["role"]; $path = array(); $addActions = array(); $add_path = false; $enabledAction = array(); $enabledAction["read"] = true; $enabledAction["insert"] = true; $enabledAction["modify"] = true; $enabledAction["delete"] = true; $actions = array(); if (in_array(current_route(), $privileges)) { foreach ($privileges as $roles) { if (diy_string_contained($roles, routelists_info()["base_info"])) { if (!in_array(routelists_info($roles)["last_info"], array("index", "insert", "update", "destroy"))) { $actions[routelists_info()["base_info"]][] = routelists_info($roles)["last_info"]; } } } $actionType = array(); $actionType["custom"] = array(); $actionType["default"] = $actions[routelists_info()["base_info"]]; foreach ($action as $ai => $actval) { if (in_array($actval, array("index", "show", "view", "create", "insert", "add", "edit", "update", "modify", "delete", "destroy"))) { unset($action[$ai]); } else { $actionType["custom"][] = $actval; } } $action = array_merge_recursive($actionType["default"], $actionType["custom"]); } if (!empty($removed_button)) { if (is_array($removed_button)) { $actionNode = array_flip($action); foreach ($removed_button as $remove) { if (in_array($remove, array("index", "show", "view", "read"))) { $enabledAction["read"] = false; if (!empty($actionNode["view"])) { unset($action[$actionNode["view"]]); } if (!empty($actionNode["index"])) { unset($action[$actionNode["index"]]); } if (!empty($actionNode["show"])) { unset($action[$actionNode["show"]]); } } elseif (in_array($remove, array("create", "insert", "add"))) { $enabledAction["insert"] = false; if (!empty($actionNode["create"])) { unset($action[$actionNode["create"]]); } if (!empty($actionNode["insert"])) { unset($action[$actionNode["insert"]]); } if (!empty($actionNode["add"])) { unset($action[$actionNode["add"]]); } } elseif (in_array($remove, array("edit", "update", "modify"))) { $enabledAction["modify"] = false; if (!empty($actionNode["edit"])) { unset($action[$actionNode["edit"]]); } if (!empty($actionNode["update"])) { unset($action[$actionNode["update"]]); } if (!empty($actionNode["modify"])) { unset($action[$actionNode["modify"]]); } } elseif (in_array($remove, array("delete", "destroy"))) { $enabledAction["delete"] = false; if (!empty($actionNode["delete"])) { unset($action[$actionNode["delete"]]); } if (!empty($actionNode["destroy"])) { unset($action[$actionNode["destroy"]]); } } else { $enabledAction[$removed_button] = false; } } } } if (is_array($action)) { foreach ($action as $action_data) { if (diy_string_contained($action_data, "|")) { $action_info = diy_add_action_button_by_string($action_data); $addActions[key($action_info)] = $action_info[key($action_info)]; $enabledAction[key($action_info)] = true; } else { $addActions[$action_data] = diy_add_action_button_by_string("{$action_data}|default|link"); $enabledAction[$action_data] = true; } } } else { if (is_string($action)) { if (diy_string_contained($action, "|")) { $addActions = diy_add_action_button_by_string($action); } else { $addActions = diy_add_action_button_by_string("{$action}|default|link"); } } } $urlTarget = $row_data->{$field_target}; $path["view"] = "{$current_url}/{$urlTarget}"; $path["edit"] = "{$current_url}/{$urlTarget}/edit"; if (!empty($row_data->deleted_at)) { $path["delete"] = "{$current_url}/{$urlTarget}/restore_deleted"; } else { $path["delete"] = "{$current_url}/{$urlTarget}/delete"; } if (false === $enabledAction["read"]) { $path["view"] = false; } if (false === $enabledAction["modify"]) { $path["edit"] = false; } if (false === $enabledAction["delete"]) { $path["delete"] = false; } if (count($addActions) >= 1) { foreach ($addActions as $action_name => $action_values) { if (!in_array($action_name, array("show", "view", "create", "edit", "delete"))) { $add_path[$action_name]["url"] = "{$current_url}/{$urlTarget}/{$action_name}"; if (is_array($action_values)) { foreach ($action_values as $actionKey => $actionValue) { if ($actionKey === $action_name) { $add_path[$action_name] = $actionValue; $add_path[$action_name]["url"] = "{$current_url}/{$urlTarget}/{$action_name}"; } else { $add_path[$action_name][$actionKey] = $actionValue; } } } } } } return create_action_buttons($path["view"], $path["edit"], $path["delete"], $add_path); } } goto Tl3C5; S5NAF: if (!function_exists("diy_draw_query_map_page_table")) { function diy_draw_query_map_page_table($name, $field_id, $value_id, $data, $buffers, $fieldbuff) { $fieldID = $field_id; $trClass = null; $o = "<table class="table mapping-table display responsive relative-box {$name}"><tbody>"; if (!empty($buffers)) { $n = 0; $id = explode("__node__", $field_id)[0]; $ico = "fa fa-recycle warning"; $script = null; foreach ($buffers[$id] as $field_info => $value) { $n++; if ($n > 1) { $field_id = $fieldbuff["ranid"][$field_info]; $value_id = $fieldbuff["ranval"][$field_info]; $trClass = " role-add-{$fieldID}"; $ico = "fa fa-minus-circle danger"; $script = "<script type='text/javascript'>$(document).ready(function() { rowButtonRemovalMapRoles('{$field_id}', '{$value_id}'); mappingPageFieldnameValues('{$field_id}', '{$value_id}', '{$data["ajax_field_name"]}'); });</script>"; } $o .= "<tr id="row-box-{$field_id}" class="relative-box row-box-{$fieldID}{$trClass}">"; $o .= "<td class="qmap-box-{$fieldID} field-name-box">"; $o .= $data["field_name"][$value->target_table][$value->target_field_name]; $o .= "</td>"; $o .= "<td class="qmap-box-{$fieldID} relative-box field-value-box">"; $o .= $data["field_value"][$value->target_table][$field_info]; $o .= "<span id="remove-row{$field_id}" class="remove-row{$fieldID} multi-chain-buttons" style="">"; $o .= "<i class='{$ico}' aria-hidden='true'></i>"; $o .= "</span>"; $o .= $script; $o .= "</td>"; $o .= "</tr>"; } } else { $o .= "<tr id="row-box-{$field_id}" class="relative-box row-box-{$field_id}">"; $o .= "<td class="qmap-box-{$field_id} field-name-box">"; $o .= "{$data["field_name"]}"; $o .= "</td>"; $o .= "<td class="qmap-box-{$field_id} relative-box field-value-box">"; $o .= "{$data["field_value"]}"; $o .= "<span id="remove-row{$field_id}" class="remove-row{$field_id} multi-chain-buttons" style="display:none;">"; $o .= "<i class='fa fa-recycle warning' aria-hidden='true'></i>"; $o .= "</span>"; $o .= "</td>"; $o .= "</tr>"; } $o .= "</tbody></table>"; return $o; } } ?>
Did this file decode correctly?
Original Code
goto NGdNo; zHBhj: if (!function_exists("\x64\x69\171\x5f\x67\x65\164\137\141\154\x6c\137\164\x61\142\154\x65\163")) { function diy_get_all_tables($connection = null) { return collect(DB::connection($connection)->select("\163\x68\157\167\x20\164\141\x62\x6c\145\x73"))->map(function ($val) { foreach ($val as $tbl) { return $tbl; } }); } } goto im328; NGdNo: if (!function_exists("\144\151\171\x5f\x66\151\154\164\145\x72\x5f\144\141\x74\141\137\x6e\157\162\155\x61\x6c\x69\x7a\145\x72")) { function diy_filter_data_normalizer($filters = array()) { $filterData = array(); foreach ($filters as $filter_data) { if (is_array($filter_data["\166\x61\154\x75\145"])) { foreach ($filter_data["\x76\x61\x6c\165\145"] as $filterValues) { $filterData[$filter_data["\x66\151\x65\154\x64\137\x6e\141\x6d\145"]]["\x76\141\x6c\165\145"][][] = $filterValues; } } else { $filterData[$filter_data["\146\x69\145\x6c\144\137\156\x61\155\x65"]]["\x76\141\x6c\x75\145"][][] = $filter_data["\x76\141\x6c\165\145"]; } } $_filters = array(); foreach ($filterData as $node => $nodeValues) { $_filters[$node]["\x66\151\145\154\144\x5f\156\x61\155\145"] = $node; $_filters[$node]["\157\160\145\x72\x61\164\157\162"] = "\x3d"; foreach ($nodeValues["\166\x61\x6c\165\x65"] as $values) { $_filters[$node]["\x76\x61\154\165\145"][] = $values[0]; } } unset($filterData); foreach ($_filters as $dataFilters) { $filterData[] = $dataFilters; } return $filterData; } } goto rEBiu; pAJHu: if (!function_exists("\x63\x72\x65\141\x74\x65\x5f\x61\143\164\x69\x6f\156\137\x62\x75\164\164\157\156\163")) { function create_action_buttons($view = false, $edit = false, $delete = false, $add_action = array(), $as_root = false) { $deleteURL = false; $delete_id = false; $buttonDelete = false; $buttonDeleteMobile = false; $restoreDeleted = false; if (false !== $delete) { $deletePath = explode("\x2f", $delete); $deleteFlag = end($deletePath); $delete_id = intval($deletePath[count($deletePath) - 2]); $deleteURL = str_replace("\x40\x69\x6e\144\x65\x78", "\x40\144\145\163\x74\x72\157\x79", diy_current_route()->getActionName()); $buttonDeleteAttribute = "\x63\x6c\x61\163\163\x3d\x22\142\164\x6e\x20\x62\164\x6e\x2d\x64\x61\156\147\x65\x72\x20\x62\x74\156\55\170\x73\42\x20\x64\141\164\x61\x2d\x74\157\147\147\154\145\75\42\x74\157\157\x6c\x74\151\x70\x22\40\x64\141\x74\141\55\x70\x6c\141\x63\145\x6d\x65\x6e\x74\75\x22\x74\x6f\x70\x22\x20\x64\141\x74\141\55\x6f\162\151\147\x69\156\x61\x6c\x2d\x74\x69\x74\x6c\x65\x3d\42\104\145\x6c\145\x74\x65\x22"; $iconDeleteAttribute = "\x66\141\40\146\141\x2d\x74\151\155\145\x73"; if ("\x72\145\163\x74\157\162\x65\x5f\144\x65\x6c\145\164\145\144" === $deleteFlag) { $restoreDeleted = true; $buttonDeleteAttribute = "\143\154\x61\163\x73\x3d\42\x62\x74\156\40\x62\x74\156\x2d\x77\x61\x72\156\x69\156\x67\40\x62\x74\156\x2d\170\163\x22\x20\144\141\x74\x61\x2d\x74\x6f\147\147\154\x65\x3d\42\164\x6f\x6f\x6c\164\151\160\x22\40\144\141\164\141\55\x70\x6c\141\143\145\155\x65\156\x74\x3d\x22\164\x6f\160\x22\x20\x64\x61\x74\x61\x2d\157\x72\151\147\x69\156\141\154\x2d\164\151\164\154\145\75\x22\122\145\163\164\x6f\x72\145\42"; $iconDeleteAttribute = "\x66\141\x20\x66\x61\x2d\x72\x65\x63\x79\143\x6c\145"; } $delete_action = "\x3c\x66\x6f\x72\x6d\40\141\x63\x74\151\x6f\156\75\x22" . action($deleteURL, $delete_id) . "\42\40\x6d\x65\x74\150\157\x64\x3d\x22\160\x6f\x73\x74\x22\40\x63\154\x61\163\x73\75\x22\x62\x74\156\40\142\x74\x6e\137\144\145\x6c\x65\164\x65\x22\x20\163\164\171\154\x65\75\42\160\141\144\x64\151\156\x67\x3a\60\x20\x21\x69\x6d\160\157\162\164\x61\156\164\42\x3e" . csrf_field() . "\74\x69\156\160\165\x74\x20\x6e\x61\155\x65\x3d\42\137\155\x65\164\x68\x6f\x64\42\40\164\171\160\x65\x3d\x22\x68\x69\144\144\x65\x6e\42\x20\x76\x61\154\x75\145\75\42\x44\105\x4c\x45\124\x45\42\x3e"; $buttonDelete = $delete_action . "\74\x62\165\164\164\157\x6e\x20" . $buttonDeleteAttribute . "\x20\164\x79\160\145\75\x22\x73\x75\x62\x6d\151\x74\42\76\74\151\x20\x63\154\x61\163\163\x3d\x22" . $iconDeleteAttribute . "\42\x3e\x3c\x2f\151\x3e\74\x2f\142\165\x74\x74\x6f\156\76\74\x2f\x66\157\162\x6d\76"; $buttonDeleteMobile = "\x3c\154\x69\x3e\x3c\x61\40\150\x72\145\x66\75\x22" . $delete . "\42\40\x63\x6c\x61\x73\x73\x3d\x22\164\157\157\154\164\x69\x70\x2d\x65\162\x72\157\162\x20\142\x74\156\137\x64\x65\x6c\x65\164\x65\x22\40\x64\x61\164\x61\x2d\162\145\154\75\42\164\x6f\x6f\x6c\x74\151\x70\42\x20\164\x69\x74\x6c\145\x3d\42\x44\x65\154\x65\x74\x65\x22\x3e\74\x73\160\x61\x6e\x20\143\x6c\141\x73\x73\75\x22\x72\145\144\42\76\x3c\151\x20\143\154\141\163\163\x3d\x22\146\141\40\146\141\x2d\164\162\141\x73\150\55\x6f\x20\x62\x69\x67\147\145\x72\x2d\61\62\60\x22\x3e\74\x2f\151\76\x3c\57\x73\160\141\156\x3e\x3c\x2f\141\76\x3c\57\154\151\x3e"; } $buttonView = false; $buttonViewMobile = false; if (false != $view) { if (true === $restoreDeleted) { $viewVisibilityAttr = "\x72\145\x61\144\x6f\156\154\x79\40\144\151\x73\141\x62\154\145\x64\x20\x63\x6c\x61\163\163\75\x22\142\164\156\x20\142\164\156\55\x64\145\146\x61\165\x6c\164\40\x62\x74\x6e\55\x78\x73\x20\x62\164\x6e\x5f\x76\x69\x65\x77\x22\40\x64\x61\164\x61\x2d\x74\157\x67\x67\154\145\x3d\42\x74\157\x6f\x6c\164\x69\x70\x22\40\144\x61\x74\x61\x2d\160\154\x61\143\x65\155\145\156\x74\x3d\x22\164\x6f\160\x22\x20\144\141\x74\141\x2d\x6f\x72\x69\x67\151\x6e\141\154\55\x74\x69\164\x6c\x65\75\x22\126\x69\x65\167\x20\x64\145\164\141\151\x6c\x22"; } else { $viewVisibilityAttr = "\x68\x72\145\x66\75\x22" . $view . "\42\x20\143\x6c\141\x73\x73\x3d\42\142\x74\x6e\40\x62\x74\x6e\x2d\x73\x75\143\143\x65\163\x73\40\142\x74\156\x2d\170\x73\40\x62\164\x6e\137\166\151\145\167\42\x20\x64\141\x74\x61\55\x74\157\x67\x67\x6c\x65\x3d\x22\x74\157\157\x6c\x74\151\x70\x22\x20\x64\x61\164\141\55\x70\x6c\x61\143\145\x6d\145\156\x74\75\x22\x74\x6f\160\42\x20\144\141\x74\141\55\x6f\x72\151\147\x69\x6e\141\154\x2d\164\x69\x74\154\x65\x3d\42\126\151\x65\x77\40\x64\145\164\x61\151\x6c\42"; } $buttonView = "\x3c\141\40" . $viewVisibilityAttr . "\76\74\151\40\x63\154\x61\x73\163\x3d\42\146\x61\40\146\x61\55\145\x79\x65\42\x3e\x3c\57\x69\76\x3c\x2f\141\x3e"; $buttonViewMobile = "\x3c\154\x69\x20\143\x6c\141\163\163\75\42\142\164\156\137\166\151\145\167\x22\76\74\x61\40\150\162\x65\x66\x3d\42" . $view . "\x22\40\143\154\x61\163\x73\x3d\x22\164\x6f\x6f\x6c\x74\x69\x70\55\151\x6e\146\157\42\40\x64\x61\x74\x61\x2d\x72\145\154\75\42\164\157\157\x6c\x74\151\x70\42\x20\x74\151\x74\x6c\x65\x3d\42\x56\x69\145\x77\42\x3e\74\x73\x70\141\x6e\x20\143\154\x61\x73\163\75\x22\142\154\x75\145\42\76\x3c\151\x20\x63\154\141\163\x73\x3d\42\x66\141\40\146\141\x2d\x73\145\141\162\x63\150\x2d\x70\x6c\165\163\40\142\151\147\x67\145\162\55\x31\x32\60\x22\76\74\57\151\76\74\57\x73\160\141\156\76\74\x2f\x61\76\x3c\57\x6c\151\76"; } $buttonEdit = false; $buttonEditMobile = false; if (false != $edit) { if (true === $restoreDeleted) { $editVisibilityAttr = "\40\x72\145\x61\144\x6f\x6e\154\x79\x20\144\151\163\141\x62\154\x65\x64\40\143\x6c\x61\x73\163\75\x22\142\x74\x6e\40\x62\164\x6e\55\144\145\146\141\165\154\x74\x20\142\164\x6e\x2d\170\163\40\x62\164\156\137\x65\x64\151\164\42\x20\144\141\x74\x61\x2d\164\x6f\147\147\x6c\145\x3d\x22\x74\x6f\157\x6c\x74\x69\160\x22\x20\144\141\x74\141\55\x70\154\x61\x63\145\155\x65\x6e\x74\x3d\42\164\157\160\x22\x20\x64\x61\164\141\x2d\157\162\x69\147\151\156\x61\154\x2d\164\151\164\154\145\x3d\x22\x45\x64\151\164\x22"; } else { $editVisibilityAttr = "\x20\x68\162\x65\146\x3d\x22" . $edit . "\x22\40\x63\154\x61\x73\x73\x3d\42\x62\x74\156\40\142\164\156\x2d\x70\x72\151\x6d\141\162\171\x20\142\x74\x6e\x2d\x78\x73\40\x62\164\x6e\x5f\145\144\x69\164\42\40\144\x61\164\141\x2d\x74\x6f\147\x67\154\x65\75\42\164\x6f\157\x6c\164\x69\160\42\40\x64\141\164\x61\55\160\x6c\x61\143\x65\155\145\156\164\75\42\x74\157\160\x22\x20\x64\x61\x74\x61\x2d\157\x72\151\147\151\x6e\141\x6c\x2d\164\x69\164\x6c\x65\x3d\42\105\x64\x69\x74\x22"; } $buttonEdit = "\74\x61\x20" . $editVisibilityAttr . "\x3e\74\151\40\x63\154\141\x73\163\75\x22\x66\141\40\146\141\55\x70\x65\156\x63\x69\x6c\42\76\x3c\57\x69\76\74\57\141\76"; $buttonEditMobile = "\x3c\154\151\x20\x63\x6c\x61\163\x73\x3d\x22\142\x74\x6e\x5f\145\144\x69\x74\42\x3e\74\x61\40\x68\162\x65\146\x3d\x22" . $edit . "\42\40\x63\154\x61\x73\163\x3d\x22\x74\157\157\x6c\x74\x69\160\55\163\x75\x63\x63\145\163\163\42\x20\x64\141\164\141\55\x72\x65\x6c\x3d\x22\x74\157\x6f\x6c\164\x69\160\x22\x20\x74\151\x74\x6c\145\x3d\x22\x45\144\x69\x74\x22\76\74\x73\160\x61\156\40\143\x6c\x61\163\163\x3d\42\147\162\x65\x65\x6e\42\76\74\x69\40\143\154\141\x73\x73\75\x22\146\x61\x20\x66\x61\x2d\160\x65\156\143\x69\x6c\x2d\x73\161\x75\x61\x72\145\55\157\x20\x62\x69\x67\x67\145\x72\55\61\x32\60\x22\x3e\74\x2f\151\x3e\74\57\163\x70\x61\156\x3e\74\57\141\x3e\74\57\x6c\151\x3e"; } $buttonNew = ''; $buttonNewMobile = ''; if (true === is_array($add_action)) { if (count($add_action) >= 1) { foreach ($add_action as $new_action_name => $new_action_values) { $btn_name = $new_action_name; $row_name = camel_case($new_action_name); $row_url = $new_action_values["\x75\162\x6c"]; $row_color = null; $row_icon = null; if (!empty($new_action_values["\143\157\154\x6f\162"])) { $row_color = $new_action_values["\143\x6f\154\157\x72"]; } if (!empty($new_action_values["\x69\x63\x6f\x6e"])) { $row_icon = $new_action_values["\x69\x63\x6f\x6e"]; } if (true === $restoreDeleted) { $actionVisibilityAttr = "\40\x72\145\141\x64\157\156\154\171\x20\x64\x69\x73\x61\142\154\x65\144\x20\x63\x6c\141\163\x73\75\42\x62\164\156\40\142\x74\156\x2d\x64\145\x66\141\165\154\x74\40\142\x74\156\x2d\x78\x73\42\x20\144\141\x74\x61\x2d\164\157\147\x67\x6c\x65\x3d\x22\x74\x6f\157\154\164\x69\x70\x22\x20\x64\141\164\141\x2d\160\154\141\x63\x65\155\x65\x6e\164\x3d\x22\x74\x6f\160\x22\40\144\141\x74\x61\55\x6f\162\x69\147\151\x6e\x61\154\x2d\x74\x69\x74\154\x65\75\x22" . $row_name . "\x22"; } else { $actionVisibilityAttr = "\40\x68\162\145\146\75\42" . $row_url . "\42\40\143\154\141\163\163\75\x22\x62\x74\156\40" . $btn_name . "\40\x62\164\x6e\55" . $row_color . "\x20\x62\164\156\55\x78\x73\x22\40\x64\141\x74\x61\55\164\157\x67\x67\x6c\145\75\x22\x74\157\x6f\154\164\151\x70\42\40\x64\x61\x74\x61\x2d\x70\x6c\x61\x63\x65\x6d\145\156\164\75\42\x74\157\x70\42\40\144\x61\x74\x61\55\157\x72\x69\147\x69\x6e\141\x6c\x2d\x74\x69\x74\x6c\x65\75\42" . $row_name . "\x22"; } $buttonNew .= "\74\x61" . $actionVisibilityAttr . "\76\x3c\x69\x20\x63\154\141\163\x73\75\x22\146\141\40\x66\141\x2d" . $row_icon . "\42\76\x3c\57\151\x3e\x3c\x2f\x61\76"; $buttonNewMobile .= "\x3c\x6c\151\x3e\x3c\x61\x20\x68\162\145\x66\75\42" . $row_url . "\42\x20\x63\154\141\x73\x73\x3d\x22\164\x6f\157\154\164\151\x70\55\x65\x72\162\x6f\162\42\x20\x64\141\x74\x61\55\162\145\154\x3d\42\164\157\x6f\x6c\164\151\160\x22\x20\164\151\164\x6c\145\x3d\x22" . $row_name . "\42\x3e\74\x73\160\141\156\x20\143\x6c\141\x73\163\75\x22\162\145\x64\x22\76\74\x69\40\x63\x6c\x61\163\x73\x3d\x22\x66\x61\40\x66\141\x2d" . $row_icon . "\40\x62\151\147\147\x65\162\x2d\x31\x32\x30\x22\x3e\74\x2f\151\76\74\57\x73\x70\141\156\76\x3c\57\x61\76\74\57\x6c\151\76"; } } } $buttons = $buttonView . $buttonEdit . $buttonDelete . $buttonNew; $buttonsMobile = $buttonViewMobile . $buttonEditMobile . $buttonDeleteMobile . $buttonNewMobile; return "\74\x64\151\166\40\143\x6c\x61\x73\163\x3d\42\x61\x63\164\x69\x6f\x6e\55\142\x75\164\x74\157\x6e\163\55\142\x6f\170\42\76\74\144\151\x76\40\143\154\x61\x73\163\x3d\42\150\x69\144\x64\145\x6e\x2d\x73\x6d\40\x68\x69\x64\144\x65\156\x2d\170\163\40\141\143\164\x69\157\156\55\142\165\164\164\x6f\x6e\x73\42\x3e" . $buttons . "\x3c\x2f\x64\x69\166\76\74\144\151\x76\x20\x63\x6c\x61\163\x73\x3d\42\x68\151\144\144\x65\156\x2d\x6d\x64\40\150\x69\144\x64\145\x6e\55\154\x67\42\76\x3c\x64\x69\166\40\143\154\x61\x73\163\x3d\42\x69\x6e\154\151\x6e\x65\x20\160\x6f\x73\55\x72\145\154\42\76\x3c\x62\165\164\164\157\156\x20\143\154\x61\x73\163\75\42\x62\x74\156\x20\142\x74\x6e\55\155\151\x6e\x69\x65\162\40\142\164\156\x2d\x79\x65\x6c\x6c\x6f\167\40\144\162\157\160\x64\x6f\167\156\55\x74\x6f\x67\x67\154\x65\x22\40\144\x61\164\x61\x2d\x74\x6f\147\147\154\x65\75\x22\144\162\157\x70\144\x6f\167\156\x22\x20\x64\x61\164\x61\x2d\160\157\163\151\x74\151\x6f\x6e\75\42\141\165\x74\x6f\x22\76\x3c\x69\x20\143\154\x61\x73\163\x3d\42\x66\141\40\x66\141\x2d\143\141\162\145\x74\55\144\x6f\167\156\40\x69\143\157\156\55\157\x6e\x6c\171\x20\142\151\147\147\x65\x72\x2d\61\62\x30\x22\x3e\74\x2f\151\76\x3c\x2f\x62\x75\164\164\x6f\x6e\76\74\x75\154\x20\x63\x6c\141\x73\163\x3d\42\144\x72\x6f\x70\144\x6f\x77\x6e\x2d\155\145\156\165\x20\144\162\x6f\160\144\x6f\x77\156\55\157\156\x6c\x79\x2d\x69\x63\x6f\156\40\144\x72\157\x70\x64\x6f\x77\156\x2d\x79\x65\154\x6c\x6f\x77\40\x64\x72\x6f\x70\144\157\167\156\55\155\145\x6e\x75\55\x72\x69\147\x68\164\40\x64\162\x6f\160\144\x6f\167\x6e\55\143\x61\x72\145\164\40\x64\x72\x6f\x70\144\x6f\167\156\x2d\x63\154\x6f\x73\x65\x22\x3e" . $buttonsMobile . "\x3c\57\165\154\x3e\x3c\x2f\144\151\x76\x3e\74\x2f\x64\x69\x76\76\x3c\57\144\151\166\x3e"; } } goto ucvvD; LDQpR: if (!function_exists("\x64\151\x79\137\164\145\x6d\160\x5f\x74\x61\142\154\145")) { function diy_temp_table($table_name, $sql, $strict = true, $conn = "\x6d\171\x73\161\x6c") { $strictConfig = config("\x64\x61\x74\x61\x62\141\x73\x65\56\143\157\156\x6e\x65\143\164\x69\157\x6e\163\x2e{$conn}\56\163\164\162\151\x63\164"); $table_name = str_replace("\164\145\x6d\x70\137", '', $table_name); if (Illuminate\Support\Facades\Schema::hasTable("\x74\x65\155\160\137{$table_name}")) { Illuminate\Support\Facades\Schema::dropIfExists("\x74\145\155\160\x5f{$table_name}"); } if (false === $strict) { Illuminate\Support\Facades\DB::purge($conn); config()->set("\144\141\164\141\142\x61\163\x65\56\x63\x6f\156\156\145\143\x74\x69\x6f\156\x73\56{$conn}\56\163\x74\162\151\143\x74", $strict); Illuminate\Support\Facades\DB::reconnect(); } diy_query($sql, "\x53\x45\114\105\x43\124"); Illuminate\Support\Facades\DB::unprepared("\103\122\105\x41\124\x45\x20\x54\x41\102\x4c\x45\x20\164\145\155\x70\137{$table_name}\x20{$sql}"); if (false === $strict) { Illuminate\Support\Facades\DB::purge($conn); config()->set("\144\141\x74\x61\142\141\x73\x65\x2e\x63\157\156\156\x65\x63\164\151\157\x6e\163\56{$conn}\56\163\164\162\x69\143\164", $strictConfig); Illuminate\Support\Facades\DB::reconnect(); } } } goto sE7M6; Z3bib: if (!function_exists("\x64\151\171\x5f\x63\154\145\x61\162\137\x6a\x73\157\x6e")) { function diy_clear_json($data) { $json = str_replace("\42\x64\141\x74\141\x22", "\x64\141\x74\141", $data); $json = str_replace("\42\x6e\141\x6d\145\x22", "\156\x61\x6d\145", $json); $json = str_replace("\42", "\x27", $json); return $json; } } goto R9UDr; Xjdn9: if (!function_exists("\x64\x69\x79\x5f\x67\x65\x74\137\x74\x61\142\154\x65\137\x63\x6f\x6c\x75\x6d\156\137\x74\x79\160\145")) { function diy_get_table_column_type($table_name, $field_name, $db_connection = "\x6d\x79\163\161\154") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->getColumnType($table_name, $field_name); } } goto LDQpR; oPKVz: if (!function_exists("\x64\151\x79\x5f\163\x65\164\x5f\x66\x6f\162\x6d\165\x6c\141\137\143\x6f\154\165\x6d\156\163")) { function diy_set_formula_columns($columns, $data) { arsort($data); $key_columns = array_flip($columns); $f_node = array(); $c_action = false; if (!empty($key_columns["\141\143\164\151\x6f\x6e"])) { $c_action = true; } $c_lists = false; if (isset($key_columns["\156\x75\x6d\142\145\162\x5f\154\x69\163\x74\163"])) { $c_lists = true; } foreach ($data as $formula_data) { $for_node = $formula_data["\156\x6f\144\x65\137\154\x6f\143\141\164\x69\x6f\156"]; $f_node[$formula_data["\156\141\155\x65"]]["\x66\x69\145\154\144\x5f\x6c\141\x62\x65\x6c"] = $formula_data["\154\x61\x62\145\x6c"]; if (empty($for_node)) { $f_node[$formula_data["\x6e\x61\x6d\145"]]["\x66\151\x65\154\x64\137\156\141\x6d\145"] = end($formula_data["\146\151\145\x6c\144\x5f\154\151\x73\164\x73"]); } else { if ("\x66\x69\162\163\x74" === $for_node) { $f_node[$formula_data["\156\x61\x6d\145"]]["\x66\x69\x65\154\144\x5f\x6e\x61\x6d\x65"] = $columns[0]; } elseif ("\x6c\141\163\x74" === $for_node) { $f_node[$formula_data["\156\x61\x6d\145"]]["\146\151\145\x6c\144\137\x6e\141\x6d\x65"] = $columns[array_key_last($columns)]; } else { $f_node[$formula_data["\x6e\141\155\145"]]["\146\151\145\x6c\144\x5f\156\x61\x6d\x65"] = $for_node; } } $f_node[$formula_data["\x6e\x61\x6d\x65"]]["\146\x69\x65\154\x64\137\153\x65\171"] = $key_columns[$f_node[$formula_data["\156\141\x6d\145"]]["\146\151\145\154\144\x5f\156\141\x6d\x65"]]; $f_node[$formula_data["\156\x61\155\x65"]]["\156\x6f\x64\x65\137\141\146\164\145\162"] = $formula_data["\156\157\144\145\137\141\146\x74\x65\x72"]; $f_node[$formula_data["\x6e\x61\155\145"]]["\x6e\157\x64\145\x5f\154\x6f\143\141\164\x69\157\156"] = $formula_data["\156\157\x64\x65\137\x6c\x6f\x63\x61\x74\x69\x6f\156"]; } foreach ($f_node as $key => $fdata) { if ("\x66\151\162\x73\164" === $fdata["\x6e\x6f\x64\145\137\x6c\x6f\x63\141\x74\x69\x6f\156"]) { if (true === $c_lists) { diy_array_insert($columns, intval($fdata["\146\x69\x65\154\x64\x5f\153\145\171"]) + 1, $key); } else { diy_array_insert($columns, intval($fdata["\146\x69\x65\154\144\137\x6b\145\x79"]), $key); } } elseif ("\x6c\x61\163\x74" === $fdata["\x6e\x6f\144\x65\137\x6c\157\x63\141\164\x69\157\x6e"]) { if (true === $fdata["\156\157\x64\145\137\141\146\x74\x65\x72"]) { if (true === $c_action) { diy_array_insert($columns, intval($fdata["\146\x69\145\x6c\x64\x5f\153\145\x79"]), $key); } else { array_push($columns, $key); } } else { diy_array_insert($columns, intval($fdata["\x66\151\145\154\144\137\x6b\x65\x79"]), $key); } } else { if (true === $fdata["\x6e\x6f\x64\145\x5f\141\x66\164\x65\162"]) { diy_array_insert($columns, intval($fdata["\x66\x69\x65\154\144\137\x6b\x65\171"]) + 1, $key); } else { diy_array_insert($columns, intval($fdata["\x66\151\145\154\144\x5f\153\145\x79"]), $key); } } } return $columns; } } goto ICuli; vaXd5: if (!function_exists("\144\x69\171\137\143\x68\x65\x63\x6b\x5f\x74\141\142\154\145\x5f\143\x6f\154\165\x6d\x6e\163")) { function diy_check_table_columns($table_name, $field_name, $db_connection = "\x6d\x79\x73\x71\x6c") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->hasColumn($table_name, $field_name); } } goto YaxnA; byY4n: if (!function_exists("\x64\x69\171\x5f\147\145\x6e\145\162\x61\164\x65\x5f\x74\x61\142\x6c\x65")) { function diy_generate_table($title = false, $title_id = false, $header = array(), $body = array(), $attributes = array(), $numbering = false, $containers = true, $server_side = false, $server_side_custom_url = false) { $datatableClass = "\x49\x6e\x63\157\x44\x49\x59\x2d\164\x61\x62\x6c\x65\x20\x74\x61\x62\154\145\x20\141\156\x69\x6d\141\x74\x65\144\40\146\x61\144\145\x49\x6e\40\164\x61\142\x6c\x65\55\x73\164\162\x69\x70\145\x64\40\x74\141\142\x6c\x65\55\x64\x65\x66\141\165\154\x74\x20\164\x61\142\154\145\x2d\142\x6f\x72\x64\145\x72\x65\x64\40\x74\x61\x62\x6c\145\55\150\157\166\145\x72\x20\x64\141\x74\x61\124\141\x62\x6c\x65\40\x72\x65\160\145\x61\164\145\x72\x20\144\x69\x73\160\x6c\141\x79\x20\162\x65\163\x70\157\156\163\151\166\x65\x20\x6e\x6f\x77\162\141\160"; if (false !== $attributes && is_array($attributes)) { if (empty($attributes)) { $_attributes = array("\151\144" => "\144\141\164\141\x74\141\142\154\x65\x2d{$title_id}", "\x63\154\141\x73\x73" => $datatableClass); } else { if (empty($attributes["\151\x64"])) { $_attributes["\x69\144"] = "\144\x61\x74\141\164\141\142\154\x65\55{$title_id}"; } if (empty($attributes["\x63\x6c\x61\x73\163"])) { $_attributes["\143\x6c\x61\163\x73"] = $datatableClass; } foreach ($attributes as $attrField => $attrValue) { $_attributes[$attrField] = $attrValue; } } } else { $_attributes = array("\151\144" => "\x64\x61\164\x61\164\x61\142\x6c\x65\55{$title_id}", "\143\154\141\x73\x73" => $datatableClass); } $attributes = "\40" . rtrim(diy_attributes_to_string($_attributes)); $hNumber = false; $hEmpty = false; $_header = false; if (true === $numbering) { $number = array("\156\x75\155\142\145\162\137\x6c\151\x73\x74\x73"); $header = array_merge($number, $header); } if (false !== $header) { $_merge = array(); $_header = "\74\x74\150\145\141\144\x3e\74\x74\162\76"; foreach ($header as $hIndex => $hList) { if (is_array($hList)) { $_merge[$hIndex] = $hList["\155\145\162\x67\x65"]; } if (is_array($hList)) { $_header .= tableColumn($header, $hIndex, $hList["\x63\x6f\154\165\x6d\x6e"]); } else { $_header .= tableColumn($header, $hIndex, $hList); } } $_header .= "\x3c\x2f\164\162\x3e"; if (!empty($_merge)) { foreach ($_merge as $_mergedata) { foreach ($_mergedata as $idx => $mdList) { $_header .= tableColumn($_mergedata, $idx, $mdList); } } } $_header .= "\x3c\x2f\x74\150\x65\x61\x64\76"; } $_body = false; $num = false; if (false === $server_side) { if (false !== $body) { $_body = "\x3c\164\142\157\x64\x79\x3e"; $array_keys = array_keys($body); $first_key = reset($array_keys); foreach ($body as $bIndex => $bLists) { $rowClickAction = false; if (!empty($bLists["\x72\157\x77\x5f\x64\141\164\141\137\x75\x72\x6c"]) && false !== $bLists["\162\x6f\167\x5f\144\141\164\141\137\165\162\154"]) { $rowClickAction = "\40\x6f\x6e\x63\x6c\151\143\153\x3d\42\154\157\143\141\164\151\157\156\x2e\x68\x72\x65\146\75\47" . $bLists["\162\x6f\x77\x5f\144\141\164\x61\137\x75\162\x6c"] . "\47\x22\x20\143\154\141\x73\163\75\x22\x72\157\x77\55\x6c\151\x73\x74\55\165\x72\x6c\x22"; } unset($bLists["\x72\x6f\167\137\x64\141\164\x61\137\165\162\x6c"]); $_body .= "\x3c\164\x72\76"; for ($row = 0; $row <= count($body); $row++) { if ($bIndex === $row) { if (true === $numbering) { if ($first_key <= 0) { $numLists = intval($row) + 1; } else { $numLists = intval($row); } $_body .= "\74\164\x64\40\x63\x6c\141\x73\163\x3d\42\x63\145\x6e\x74\145\x72\x22\x3e{$numLists}\74\x2f\164\x64\x3e"; } foreach ($bLists as $index => $list) { $row_attr = false; if ("\x61\x63\164\151\x6f\156" === $index) { $rowClickAction = false; } if (true === str_contains($list, "\x7b\x3a\x7d")) { $reList = explode("\173\72\x7d", $list); $list = $reList[0]; if (isset($reList[1])) { $rowAttr = explode("\174", $reList[1]); $row_attr = "\40" . implode("\x20", $rowAttr); } $row_list = "\74\164\x64{$row_attr}{$rowClickAction}\76{$list}\74\x2f\164\144\x3e"; } else { $row_list = "\x3c\x74\x64{$rowClickAction}\x3e{$list}\x3c\x2f\x74\x64\x3e"; } if ($hNumber === $index) { if (is_empty($list)) { $num = intval($row) + 1; } else { $num = $list; } $_body .= "\74\x74\144\40\143\x6c\141\163\x73\75\42\143\x65\x6e\x74\145\x72\x22\x3e{$num}\74\x2f\x74\144\76"; } else { if ($hEmpty === $index) { $_body .= "\x3c\164\x64\x20\143\154\141\163\x73\x3d\x22\143\x65\x6e\x74\145\162\x22\76{$list}\74\57\164\144\x3e"; } else { if ("\x61\x63\x74\151\x76\145" === $index) { $_list = set_active_value($list); $_body .= "\74\x74\x64\x20\x61\154\151\x67\156\x3d\42\x63\145\x6e\164\145\162\x22\x3e{$_list}\74\57\164\144\76"; } else { if ("\146\x6c\141\x67\x5f\163\x74\141\x74\165\163" === $index) { $_list = internal_flag_status($list); $_body .= "\x3c\164\x64\x20\141\154\x69\147\x6e\x3d\42\x63\145\156\x74\145\162\x22{$rowClickAction}\x3e{$_list}\74\x2f\164\144\x3e"; } else { if ("\x72\x65\161\165\x65\163\x74\137\163\x74\141\164\x75\163" === $index) { $_list = request_status(true, $list); $_body .= "\x3c\164\144\x20\141\x6c\x69\x67\x6e\x3d\42\143\x65\156\x74\x65\162\x22\76{$_list}\74\57\164\144\x3e"; } else { if ("\165\x70\x64\141\164\145\137\x73\x74\141\x74\x75\163" === $index) { $_list = active_box(); $_body .= "\74\164\x64\x20\141\154\x69\x67\156\75\42\x63\145\x6e\x74\x65\x72\x22\76{$_list[$list]}\x3c\57\x74\x64\x3e"; } else { if ("\141\x63\x74\151\157\156" === $index) { $_body .= "\x3c\x74\144\40\x61\154\x69\147\x6e\x3d\x22\143\145\156\x74\145\162\x22{$rowClickAction}\76{$list}\74\57\164\x64\x3e"; } else { $_body .= $row_list; } } } } } } } } } } $_body .= "\74\x2f\x74\x72\x3e"; } $_body .= "\x3c\57\164\142\157\144\171\76"; } else { $_body = "\x3c\164\x62\157\144\171\x3e\74\x74\x72\76\74\x74\144\76\x46\157\x75\156\144\40\156\157\40\x64\141\164\x61\x3c\x2f\164\x64\x3e\74\57\x74\162\76\x3c\57\x74\x62\x6f\x64\171\x3e"; } } else { $_body = null; } $table = "\74\164\141\142\154\145{$attributes}\76{$_header}{$_body}\74\x2f\164\141\x62\x6c\145\x3e"; return $table; } function tableColumn($header, $hIndex, $hList) { $hNumber = false; $hCheck = false; $hEmpty = false; $_header = false; $HKEY = false; $HVAL = false; if (is_array($hList)) { $keyList = array_keys($hList); $HKEY = $keyList[0]; $HVAL = $hList[$HKEY]; } else { $HKEY = $hList; $HVAL = trim(ucwords(str_replace("\x5f", "\40", $HKEY))); } $hList = $HKEY; $hLabel = $HVAL; $hListFields = $hList; if (true === str_contains($hList, "\174")) { $newHList = explode("\x7c", $hList); $hList = $newHList[1]; $hListFields = $hList; } if (true === str_contains($hList, "\x2e")) { $newHList = explode("\56", $hList); $hList = $newHList[0]; } $idHeader = $header[$hIndex]; if (is_array($idHeader)) { $fHead = array_keys($idHeader); $idHeader = $fHead[0]; } if ("\156\157" === strtolower($idHeader) || "\151\144" === strtolower($idHeader) || "\x6e\x69\x6b" === strtolower($idHeader)) { $hNumber = $hIndex; } if (true === diy_string_contained($hList, "\74\x69\156\x70\x75\x74\40\x74\171\x70\145\x3d\42\x63\x68\145\143\153\142\x6f\x78\x22")) { $hCheck = $hIndex; } if (is_empty($hList)) { $hEmpty = $hIndex; } $hList = trim(ucwords(str_replace("\137", "\x20", $hList))); if ($hNumber === $hIndex) { $_header .= "\x3c\164\x68\40\x63\x6c\141\x73\x73\x3d\x22\x63\145\x6e\164\145\162\42\40\167\151\144\164\150\75\42\65\x30\42\x3e{$hList}\74\57\x74\150\76"; } else { if (true === str_contains($hList, "\72\143\150\x61\x6e\147\x65\110\x65\x61\144\145\162\116\x61\155\x65\72")) { $newHList = explode("\x3a\143\150\141\x6e\x67\145\110\145\x61\x64\x65\162\x4e\x61\x6d\x65\x3a", $hList); $hList = ucwords($newHList[1]); $hListFields = $hList; $_header .= "\x3c\x74\150\x20\143\154\x61\163\x73\75\x22\x63\x65\156\164\x65\162\x22\40\x77\x69\x64\164\150\75\x22\61\x32\60\x22\76{$hListFields}\74\57\x74\x68\76"; } else { if ($hCheck === $hIndex) { $_header .= "\74\x74\150\x20\x77\151\144\x74\150\x3d\42\65\60\x22\x3e{$hList}\x3c\x2f\x74\150\76"; } else { if ($hEmpty === $hIndex) { $_header .= "\74\x74\x68\40\x63\154\x61\x73\x73\75\x22\143\145\156\164\145\x72\x22\40\167\x69\x64\164\150\x3d\42\x31\x32\x30\42\x3e{$hList}\x3c\57\x74\150\x3e"; } else { if ("\101\143\164\x69\157\x6e" === $hList) { $_header .= "\x3c\x74\150\x20\x63\x6c\x61\163\x73\75\42\x63\145\156\164\145\162\x22\40\167\151\144\x74\150\x3d\42\x31\62\60\42\76{$hList}\x3c\57\164\150\76"; } else { if ("\101\143\x74\x69\166\145" === $hList) { $_header .= "\74\164\x68\40\143\x6c\141\x73\163\x3d\42\143\145\x6e\164\x65\x72\x22\40\x77\151\x64\164\x68\75\x22\61\x32\60\x22\x3e{$hList}\74\x2f\164\x68\76"; } else { if ("\x46\x6c\141\x67\40\x53\164\141\164\x75\163" === $hList) { $_header .= "\x3c\x74\x68\40\143\x6c\x61\x73\x73\x3d\42\143\145\x6e\x74\145\162\x22\40\167\x69\x64\164\150\x3d\x22\x31\62\x30\x22\76{$hList}\74\x2f\x74\x68\76"; } else { if ("\156\x75\155\x62\x65\x72\x5f\154\x69\163\164\x73" === strtolower($idHeader)) { $_header .= "\74\x74\x68\40\143\x6c\141\163\163\75\x22\x63\x65\x6e\x74\145\x72\x22\40\x77\x69\x64\164\150\75\42\x33\x30\x22\x3e\x4e\157\74\57\164\x68\x3e\x3c\x74\150\x20\x63\154\141\163\163\x3d\42\143\x65\156\x74\x65\x72\x22\40\167\151\x64\164\x68\75\x22\x33\60\42\x3e\x49\104\74\57\164\x68\76"; } else { $row_attr = false; if (true === str_contains($hList, "\x7b\72\175")) { $reList = explode("\173\72\x7d", $hList); $hList = $reList[0]; if (isset($reList[1])) { $rowAttr = explode("\174", $reList[1]); $row_attr = "\40" . implode("\x20", $rowAttr); } $row_list = "\74\x74\x68{$row_attr}\76{$hList}\x3c\x2f\164\x68\76"; } else { $row_list = "\74\x74\x68\x3e{$hLabel}\x3c\57\x74\150\x3e"; } $_header .= $row_list; } } } } } } } } return $_header; } } goto S5NAF; im328: if (!function_exists("\x64\x69\171\137\x73\145\x74\x5f\x63\157\156\156\x65\143\x74\151\157\156\137\x73\145\x70\141\162\x61\164\157\x72")) { function diy_set_connection_separator($separator = "\55\55\144\151\171\x63\157\156\x2d\55") { return $separator; } } goto vaXd5; Tl3C5: if (!function_exists("\144\151\x79\x5f\141\x64\x64\137\141\143\x74\x69\x6f\x6e\137\x62\x75\164\164\157\156\x5f\x62\171\x5f\x73\164\x72\151\x6e\x67")) { function diy_add_action_button_by_string($action, $is_array = false) { $addActions = array(); if (is_bool($action)) { if (true === $action) { $addActions["\x76\151\145\167"]["\x63\157\154\157\x72"] = "\x73\165\x63\143\x65\x73\x73"; $addActions["\x76\x69\x65\167"]["\151\143\x6f\x6e"] = "\145\x79\145"; $addActions["\x65\x64\151\164"]["\143\157\154\x6f\162"] = "\x70\162\x69\x6d\141\x72\171"; $addActions["\145\144\x69\164"]["\x69\143\x6f\156"] = "\160\x65\x6e\143\151\x6c"; $addActions["\144\x65\x6c\x65\164\x65"]["\143\x6f\154\157\x72"] = "\144\141\156\x67\145\x72"; $addActions["\144\145\154\145\164\145"]["\x69\143\x6f\156"] = "\164\151\x6d\145\163"; } } else { if (diy_string_contained($action, "\174")) { $str_action = explode("\174", $action); $str_name = reset($str_action); } else { $str_action = $action; $str_name = false; } $actionAttr = array(); if (count($str_action) >= 2) { $actionAttr["\143\x6f\154\157\162"] = false; if (isset($str_action[1])) { $actionAttr["\x63\x6f\x6c\x6f\162"] = $str_action[1]; } $actionAttr["\x69\x63\x6f\x6e"] = false; if (isset($str_action[2])) { $actionAttr["\x69\143\157\x6e"] = $str_action[2]; } $addActions[$str_name] = $actionAttr; } else { $addActions[$action] = $action; } } return $addActions; } } goto pAJHu; YaxnA: if (!function_exists("\x64\151\x79\137\147\x65\164\x5f\x74\x61\142\154\145\137\143\x6f\154\x75\x6d\156\163")) { function diy_get_table_columns($table_name, $db_connection = "\155\x79\x73\x71\154") { $connection = DB::connection($db_connection); return $connection->getSchemaBuilder()->getColumnListing($table_name); } } goto Xjdn9; ICuli: if (!function_exists("\144\151\x79\137\155\x6f\144\141\154\x5f\143\157\x6e\164\145\x6e\x74\x5f\150\164\x6d\x6c")) { function diy_modal_content_html($name, $title, $elements) { $buttonID = str_replace("\137\x63\x64\x79\x46\111\x4c\x54\105\x52\x6d\157\x64\141\x6c\102\117\x58", "\x5f\x73\165\142\x6d\151\x74\x46\151\154\x74\145\x72\102\x75\164\164\157\x6e", $name); $html = "\x3c\144\x69\x76\x20\x63\x6c\x61\x73\163\x3d\42\x6d\157\144\141\154\55\x62\x6f\144\x79\x22\76"; $html .= "\x3c\x64\151\x76\40\x69\x64\x3d\x22" . $name . "\x22\x3e"; $html .= implode('', $elements); $html .= "\74\57\144\151\166\76"; $html .= "\74\57\x64\x69\x76\x3e"; $html .= "\x3c\x64\151\166\x20\x63\x6c\x61\x73\163\x3d\x22\155\x6f\144\x61\154\x2d\146\x6f\x6f\164\x65\162\x22\x3e"; $html .= "\74\144\151\x76\40\143\154\141\x73\163\75\42\144\x69\171\55\x61\x63\164\151\x6f\156\55\x62\157\x78\x22\76"; $html .= "\x3c\x62\x75\x74\x74\x6f\x6e\40\x74\171\x70\145\x3d\42\x72\x65\163\x65\164\42\x20\151\x64\75\42" . $name . "\55\x63\x61\156\x63\145\x6c\x22\x20\x63\x6c\x61\163\163\x3d\x22\x62\164\156\40\142\x74\156\55\x64\x61\x6e\x67\145\162\40\x62\x74\x6e\x2d\163\x6c\x69\144\145\162\x69\147\x68\164\x20\x70\x75\154\154\55\x72\151\x67\150\x74\42\x20\x64\141\x74\141\x2d\144\151\163\155\151\x73\163\75\x22\155\x6f\144\141\x6c\42\x3e\x43\141\156\x63\x65\154\74\x2f\142\165\x74\x74\x6f\156\76"; $html .= "\74\x62\x75\164\x74\157\x6e\x20\151\x64\75\42" . $buttonID . "\42\x20\x63\x6c\x61\163\x73\x3d\42\142\164\x6e\x20\142\164\x6e\55\x70\162\x69\x6d\141\162\x79\40\x62\x74\x6e\55\163\154\151\144\x65\x72\x69\x67\150\164\x20\160\165\x6c\x6c\x2d\162\x69\147\x68\x74\x22\x20\164\171\x70\145\75\42\163\x75\142\155\151\164\x22\x3e"; $html .= "\74\151\x20\x63\154\x61\x73\x73\x3d\x22\146\x61\x20\146\x61\55\x66\x69\x6c\164\145\162\42\x3e\x3c\x2f\x69\76\x20\46\156\142\163\x70\73\x20\106\151\x6c\164\145\x72\x20\104\x61\164\141\40" . $title; $html .= "\74\57\142\165\164\164\157\x6e\76"; $html .= "\74\x62\165\164\164\x6f\156\x20\151\x64\x3d\x22\145\170\160\x6f\162\x74\106\151\154\x74\x65\162\102\x75\164\x74\x6f\156" . $name . "\42\x20\x63\154\141\x73\163\75\42\142\x74\156\x20\142\164\x6e\55\x69\x6e\x66\157\40\142\x74\x6e\55\x73\154\151\144\x65\x72\x69\x67\x68\164\40\x70\x75\x6c\154\x2d\x72\151\147\x68\x74\x20\x62\164\156\55\x65\170\x70\x6f\162\x74\x2d\x63\163\x76\40\x68\151\144\145\42\x20\164\171\160\x65\75\x22\142\x75\164\164\157\x6e\x22\x3e\105\170\x70\x6f\162\164\x20\164\157\40\103\x53\x56\x3c\x2f\x62\165\x74\164\x6f\156\x3e"; $html .= "\x3c\57\x64\x69\x76\x3e"; $html .= "\74\57\144\151\166\x3e"; return $html; } } goto Z3bib; ucvvD: if (!function_exists("\x64\x69\171\x5f\x74\x61\x62\154\145\137\162\x6f\167\137\x61\x74\164\162")) { function diy_table_row_attr($str_value, $attributes) { $attr = $attributes; if (is_array($attributes)) { $attribute = array(); foreach ($attributes as $key => $value) { $attribute[] = "{$key}\75\42{$value}\x22"; } $attr = implode("\x20", $attribute); } return "{$str_value}\x7b\72\x7d{$attr}"; } } goto byY4n; sE7M6: if (!function_exists("\144\x69\171\137\x6d\x6f\144\145\x6c\x5f\x70\x72\157\x63\145\x73\163\151\x6e\x67\137\164\141\142\154\x65")) { function diy_model_processing_table($data, $name) { if (!empty($data[$name])) { $model = $data[$name]["\155\157\x64\x65\x6c"]; if (false === $data[$name]["\163\164\162\151\143\164"]) { diy_db("\160\x75\162\147\x65", $data[$name]["\x63\x6f\x6e\156\x65\x63\x74\x69\157\x6e"]); config()->set("\x64\x61\164\x61\142\141\x73\x65\56\x63\x6f\x6e\156\x65\x63\164\151\157\156\163\x2e{$data[$name]["\x63\157\156\156\x65\x63\164\151\157\x6e"]}\x2e\163\164\x72\x69\x63\164", $data[$name]["\x73\x74\x72\151\143\164"]); diy_db("\162\x65\143\x6f\x6e\156\145\143\164"); } $model->{$data[$name]["\x66\165\x6e\143\164\x69\x6f\156"]}(); } } } goto oPKVz; rEBiu: if (!function_exists("\x64\x69\171\137\147\145\x74\137\155\157\144\145\154\x5f\x74\x61\142\154\145")) { function diy_get_model_table($model, $find = false) { $model = diy_get_model($model, $find); return $model->getTable(); } } goto zHBhj; R9UDr: if (!function_exists("\144\x69\x79\x5f\164\x61\x62\x6c\x65\x5f\141\x63\x74\x69\x6f\156\137\x62\165\x74\x74\157\x6e")) { function diy_table_action_button($row_data, $field_target = "\151\x64", $current_url, $action, $removed_button = null) { $privileges = session()->all()["\x70\162\x69\166\151\x6c\x65\x67\145\x73"]["\x72\157\154\x65"]; $path = array(); $addActions = array(); $add_path = false; $enabledAction = array(); $enabledAction["\x72\145\141\x64"] = true; $enabledAction["\x69\156\163\145\x72\164"] = true; $enabledAction["\155\x6f\144\151\x66\171"] = true; $enabledAction["\x64\145\154\145\164\145"] = true; $actions = array(); if (in_array(current_route(), $privileges)) { foreach ($privileges as $roles) { if (diy_string_contained($roles, routelists_info()["\x62\141\x73\145\137\x69\x6e\146\157"])) { if (!in_array(routelists_info($roles)["\x6c\x61\163\164\x5f\151\156\x66\157"], array("\151\156\x64\x65\170", "\x69\x6e\x73\145\162\x74", "\x75\160\144\x61\x74\x65", "\144\145\163\164\162\x6f\x79"))) { $actions[routelists_info()["\142\x61\x73\145\137\151\156\x66\x6f"]][] = routelists_info($roles)["\x6c\141\x73\x74\137\151\x6e\146\157"]; } } } $actionType = array(); $actionType["\143\165\163\x74\157\x6d"] = array(); $actionType["\x64\145\146\141\x75\154\x74"] = $actions[routelists_info()["\x62\141\x73\145\137\x69\156\146\157"]]; foreach ($action as $ai => $actval) { if (in_array($actval, array("\x69\156\144\x65\x78", "\x73\150\157\x77", "\166\x69\x65\167", "\x63\x72\x65\141\164\x65", "\151\x6e\x73\145\x72\164", "\x61\x64\x64", "\x65\x64\151\x74", "\x75\x70\144\141\164\x65", "\x6d\157\144\151\x66\171", "\x64\145\154\x65\x74\x65", "\x64\145\163\164\x72\x6f\x79"))) { unset($action[$ai]); } else { $actionType["\143\x75\163\164\x6f\155"][] = $actval; } } $action = array_merge_recursive($actionType["\144\145\146\x61\x75\x6c\164"], $actionType["\x63\165\x73\x74\157\155"]); } if (!empty($removed_button)) { if (is_array($removed_button)) { $actionNode = array_flip($action); foreach ($removed_button as $remove) { if (in_array($remove, array("\151\x6e\144\145\170", "\x73\x68\157\x77", "\166\151\x65\167", "\162\145\x61\x64"))) { $enabledAction["\x72\x65\x61\x64"] = false; if (!empty($actionNode["\166\151\145\x77"])) { unset($action[$actionNode["\x76\x69\x65\x77"]]); } if (!empty($actionNode["\x69\156\x64\145\170"])) { unset($action[$actionNode["\x69\x6e\144\x65\x78"]]); } if (!empty($actionNode["\x73\150\x6f\x77"])) { unset($action[$actionNode["\x73\x68\157\167"]]); } } elseif (in_array($remove, array("\x63\162\145\141\164\145", "\151\156\163\145\162\x74", "\141\144\144"))) { $enabledAction["\151\x6e\x73\x65\x72\164"] = false; if (!empty($actionNode["\x63\162\145\x61\x74\x65"])) { unset($action[$actionNode["\x63\162\x65\141\164\x65"]]); } if (!empty($actionNode["\x69\x6e\x73\145\162\164"])) { unset($action[$actionNode["\151\156\163\145\x72\164"]]); } if (!empty($actionNode["\x61\x64\x64"])) { unset($action[$actionNode["\141\x64\144"]]); } } elseif (in_array($remove, array("\145\144\x69\x74", "\165\x70\x64\x61\164\x65", "\155\x6f\x64\151\x66\171"))) { $enabledAction["\x6d\x6f\144\x69\x66\171"] = false; if (!empty($actionNode["\x65\x64\151\x74"])) { unset($action[$actionNode["\x65\144\151\x74"]]); } if (!empty($actionNode["\x75\160\144\x61\164\145"])) { unset($action[$actionNode["\165\160\144\x61\164\x65"]]); } if (!empty($actionNode["\x6d\157\x64\151\x66\171"])) { unset($action[$actionNode["\x6d\157\x64\151\146\x79"]]); } } elseif (in_array($remove, array("\x64\145\x6c\145\164\x65", "\144\x65\163\x74\x72\x6f\171"))) { $enabledAction["\144\x65\x6c\x65\164\145"] = false; if (!empty($actionNode["\144\145\x6c\145\164\145"])) { unset($action[$actionNode["\x64\145\x6c\145\x74\145"]]); } if (!empty($actionNode["\x64\145\163\164\x72\157\x79"])) { unset($action[$actionNode["\x64\x65\x73\164\162\x6f\x79"]]); } } else { $enabledAction[$removed_button] = false; } } } } if (is_array($action)) { foreach ($action as $action_data) { if (diy_string_contained($action_data, "\174")) { $action_info = diy_add_action_button_by_string($action_data); $addActions[key($action_info)] = $action_info[key($action_info)]; $enabledAction[key($action_info)] = true; } else { $addActions[$action_data] = diy_add_action_button_by_string("{$action_data}\174\x64\145\x66\141\x75\x6c\x74\x7c\x6c\x69\156\153"); $enabledAction[$action_data] = true; } } } else { if (is_string($action)) { if (diy_string_contained($action, "\174")) { $addActions = diy_add_action_button_by_string($action); } else { $addActions = diy_add_action_button_by_string("{$action}\174\144\145\146\141\165\x6c\x74\x7c\154\151\x6e\153"); } } } $urlTarget = $row_data->{$field_target}; $path["\166\151\x65\x77"] = "{$current_url}\x2f{$urlTarget}"; $path["\x65\144\151\x74"] = "{$current_url}\57{$urlTarget}\x2f\x65\144\x69\x74"; if (!empty($row_data->deleted_at)) { $path["\x64\x65\154\145\x74\145"] = "{$current_url}\x2f{$urlTarget}\57\x72\x65\x73\164\x6f\162\145\x5f\x64\145\154\x65\164\145\x64"; } else { $path["\x64\145\154\145\164\x65"] = "{$current_url}\57{$urlTarget}\57\x64\145\154\x65\164\x65"; } if (false === $enabledAction["\x72\x65\141\x64"]) { $path["\x76\x69\145\x77"] = false; } if (false === $enabledAction["\x6d\x6f\x64\151\x66\171"]) { $path["\145\144\151\164"] = false; } if (false === $enabledAction["\144\145\154\x65\164\145"]) { $path["\x64\x65\x6c\145\x74\x65"] = false; } if (count($addActions) >= 1) { foreach ($addActions as $action_name => $action_values) { if (!in_array($action_name, array("\163\150\157\x77", "\x76\x69\145\x77", "\x63\162\x65\141\x74\x65", "\145\144\151\164", "\144\x65\154\145\164\x65"))) { $add_path[$action_name]["\165\162\x6c"] = "{$current_url}\x2f{$urlTarget}\x2f{$action_name}"; if (is_array($action_values)) { foreach ($action_values as $actionKey => $actionValue) { if ($actionKey === $action_name) { $add_path[$action_name] = $actionValue; $add_path[$action_name]["\165\x72\154"] = "{$current_url}\x2f{$urlTarget}\57{$action_name}"; } else { $add_path[$action_name][$actionKey] = $actionValue; } } } } } } return create_action_buttons($path["\166\x69\x65\x77"], $path["\145\x64\151\164"], $path["\x64\145\154\x65\164\x65"], $add_path); } } goto Tl3C5; S5NAF: if (!function_exists("\144\151\x79\137\144\x72\x61\x77\137\161\165\145\x72\171\x5f\x6d\141\160\x5f\160\x61\147\x65\137\x74\141\x62\x6c\145")) { function diy_draw_query_map_page_table($name, $field_id, $value_id, $data, $buffers, $fieldbuff) { $fieldID = $field_id; $trClass = null; $o = "\x3c\164\x61\142\154\x65\x20\x63\x6c\x61\x73\x73\x3d\42\x74\x61\x62\x6c\145\40\155\x61\x70\160\151\156\x67\x2d\164\141\142\154\145\x20\144\151\x73\160\x6c\141\171\x20\x72\145\163\160\157\x6e\163\x69\x76\x65\40\x72\145\154\141\164\151\166\x65\x2d\142\x6f\170\40{$name}\x22\x3e\x3c\164\142\157\x64\171\76"; if (!empty($buffers)) { $n = 0; $id = explode("\137\137\x6e\157\x64\145\137\137", $field_id)[0]; $ico = "\x66\x61\x20\x66\141\55\x72\x65\143\x79\143\154\x65\40\167\x61\x72\x6e\x69\156\x67"; $script = null; foreach ($buffers[$id] as $field_info => $value) { $n++; if ($n > 1) { $field_id = $fieldbuff["\x72\141\156\151\x64"][$field_info]; $value_id = $fieldbuff["\x72\x61\x6e\x76\141\154"][$field_info]; $trClass = "\x20\x72\157\154\x65\55\x61\144\144\x2d{$fieldID}"; $ico = "\146\x61\x20\x66\x61\x2d\x6d\151\x6e\x75\163\x2d\x63\x69\162\x63\x6c\x65\40\x64\141\156\147\x65\x72"; $script = "\x3c\x73\143\162\x69\160\x74\40\x74\x79\x70\145\75\x27\164\145\170\164\57\152\141\x76\141\x73\x63\162\151\160\164\x27\76\44\50\x64\x6f\143\165\x6d\145\x6e\x74\51\x2e\162\x65\x61\x64\x79\50\x66\165\x6e\x63\x74\151\157\x6e\x28\51\40\173\40\x72\157\x77\x42\x75\164\164\x6f\x6e\122\145\x6d\x6f\x76\x61\154\115\141\x70\x52\157\x6c\x65\163\x28\x27{$field_id}\x27\54\x20\x27{$value_id}\47\x29\73\40\155\141\160\x70\x69\x6e\147\120\x61\147\145\106\151\x65\154\x64\156\141\155\145\126\x61\154\165\145\163\x28\47{$field_id}\47\54\x20\47{$value_id}\x27\x2c\40\47{$data["\x61\152\141\170\x5f\146\151\145\x6c\x64\x5f\x6e\x61\x6d\145"]}\x27\51\x3b\x20\175\x29\73\74\x2f\x73\143\x72\151\160\x74\76"; } $o .= "\74\x74\162\x20\x69\x64\x3d\x22\x72\x6f\x77\55\142\157\x78\55{$field_id}\42\x20\x63\x6c\141\x73\163\x3d\x22\162\145\x6c\141\x74\151\x76\145\55\x62\157\x78\40\x72\157\x77\x2d\142\157\x78\55{$fieldID}{$trClass}\42\x3e"; $o .= "\x3c\x74\144\40\143\x6c\x61\x73\163\75\x22\x71\x6d\141\x70\x2d\x62\x6f\170\55{$fieldID}\x20\x66\151\x65\154\x64\x2d\156\x61\x6d\145\x2d\x62\x6f\170\42\76"; $o .= $data["\146\x69\145\x6c\144\137\156\141\155\145"][$value->target_table][$value->target_field_name]; $o .= "\x3c\57\164\x64\x3e"; $o .= "\74\x74\x64\40\x63\154\x61\163\163\x3d\x22\x71\x6d\141\160\55\x62\157\x78\55{$fieldID}\40\162\x65\x6c\141\x74\151\166\x65\55\x62\157\x78\x20\146\x69\x65\154\144\x2d\x76\141\x6c\165\x65\x2d\142\x6f\x78\x22\x3e"; $o .= $data["\x66\151\x65\154\x64\x5f\x76\x61\154\x75\145"][$value->target_table][$field_info]; $o .= "\74\163\x70\141\x6e\x20\x69\144\x3d\42\162\145\x6d\x6f\x76\145\x2d\162\x6f\167{$field_id}\x22\40\x63\154\x61\x73\163\x3d\x22\162\145\155\x6f\x76\145\x2d\x72\157\x77{$fieldID}\x20\155\165\154\164\151\x2d\143\150\x61\151\x6e\x2d\142\165\x74\x74\x6f\x6e\x73\x22\40\x73\x74\x79\154\145\75\x22\x22\76"; $o .= "\x3c\x69\40\143\154\141\x73\x73\75\x27{$ico}\47\x20\x61\162\151\x61\x2d\150\151\x64\144\x65\x6e\75\47\164\x72\165\x65\47\76\x3c\57\x69\x3e"; $o .= "\x3c\57\x73\160\x61\156\76"; $o .= $script; $o .= "\74\x2f\x74\144\76"; $o .= "\x3c\x2f\x74\x72\76"; } } else { $o .= "\74\164\x72\x20\x69\144\75\x22\x72\157\x77\55\x62\x6f\170\x2d{$field_id}\x22\x20\x63\x6c\141\163\163\75\x22\162\145\x6c\141\x74\x69\x76\145\55\142\x6f\x78\x20\162\157\x77\55\142\x6f\x78\55{$field_id}\x22\76"; $o .= "\x3c\164\144\40\x63\154\141\x73\163\75\x22\161\x6d\141\x70\55\142\x6f\x78\x2d{$field_id}\x20\x66\151\145\x6c\x64\55\156\x61\155\145\x2d\142\x6f\x78\42\76"; $o .= "{$data["\x66\151\145\x6c\x64\137\156\141\x6d\x65"]}"; $o .= "\74\57\164\x64\76"; $o .= "\x3c\164\144\x20\x63\154\x61\163\x73\75\42\161\x6d\141\x70\55\142\x6f\170\x2d{$field_id}\x20\x72\x65\x6c\x61\x74\151\x76\x65\x2d\x62\157\x78\40\146\151\145\154\144\55\x76\x61\x6c\165\x65\55\x62\157\x78\x22\76"; $o .= "{$data["\146\151\x65\x6c\144\137\x76\x61\x6c\x75\145"]}"; $o .= "\x3c\x73\x70\x61\156\40\x69\144\x3d\x22\162\x65\155\157\x76\145\x2d\162\x6f\x77{$field_id}\x22\40\x63\x6c\141\x73\x73\x3d\x22\x72\145\155\x6f\x76\x65\x2d\x72\x6f\167{$field_id}\x20\x6d\x75\x6c\164\151\55\143\150\x61\x69\x6e\55\x62\165\164\x74\157\x6e\x73\x22\40\x73\x74\x79\154\145\x3d\42\144\x69\163\160\x6c\141\171\x3a\x6e\157\x6e\145\x3b\x22\x3e"; $o .= "\x3c\x69\x20\x63\x6c\141\x73\163\75\47\146\141\40\146\141\x2d\162\x65\143\x79\x63\154\145\x20\x77\x61\162\156\151\x6e\x67\47\x20\141\162\x69\x61\x2d\x68\x69\x64\144\x65\156\x3d\x27\x74\x72\165\145\x27\76\74\57\151\x3e"; $o .= "\x3c\57\x73\160\x61\156\x3e"; $o .= "\74\x2f\164\x64\76"; $o .= "\x3c\57\164\162\76"; } $o .= "\74\x2f\164\x62\157\144\x79\x3e\74\57\x74\x61\142\154\145\x3e"; return $o; } }
Function Calls
None |
Stats
MD5 | 5b932423f36e3da88e421f6d3f30622c |
Eval Count | 0 |
Decode Time | 59 ms |