这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference

"name": "PHP",
"image": "jrouaix/phpdevcontainer",
// "dockerFile": "Dockerfile",

// Comment out the next line to run as root instead. Linux users, update
// Dockerfile with your user's UID/GID if not 1000.
"runArgs": ["-u", "vscode"],

// Use 'settings' to set *default* container specific settings.json values on container create.
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Uncomment the next line if you want to publish any ports.
"appPort": [8000],

// Uncomment the next line to run commands after the container is created.
"postCreateCommand": "php -v",

"extensions": [
"felixfbecker.php-debug",
"felixfbecker.php-intellisense",
"mehedidracula.php-namespace-resolver",
"mehedidracula.php-constructor",
"ikappas.phpcs"
]
}
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ Este es el proyecto de Sistemas Contables denominado C.A.S (Computerized Account
contable computarizado, escrito en PHP para su uso en la Web.


Requerimientos del sistema:
### Requerimientos del sistema:

* PHP versión 5 o superior.
* Apache/2.4.4 o superior.
* MySQL 4.0.4 o superior.


Compatibilidad con Navagadores
### Compatibilidad con Navegadores:

* Google Chrome (recomendado)
* Mozilla Firefox
Expand All @@ -26,7 +26,7 @@ Compatibilidad con Navagadores
(En Internet Explorer, el sistema presenta fallas).


Características del sistema
### Características del sistema:

* Manejo de inicio/cierre de sesión de usuarios.
* Seguridad: Contraseñas encriptadas, accesos restringidos de acuerdo al tipo de usuario, imposibilidad de ver
Expand All @@ -39,3 +39,7 @@ Características del sistema
* Balance General.
* Creación de nuevas cuentas.
* Detalles de cada cuenta registrada.

### Ejecución del sistema:

El repositorio cuenta con un archivo `devcontainer.json` que permite generar un entorno de desarrollo con el stack de tecnologías necesarias para ejecutar el sistema de manera rápida, sencilla y gratuita. Puedes investigar sobre el uso de los `Codespaces` en GitHub [aquí](https://github.com/features/codespaces).
9 changes: 5 additions & 4 deletions php/conexion.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
<?php
function conectarse()
{
$servidor = "localhost";
$usuario = "root";
$password = "root";
$bd = "sic115";
$servidor = getenv("DB_SERVER");
$usuario = getenv("DB_USER");
$password = getenv("DB_PASSWORD");
$bd = getenv("DB_NAME");

// Recuerda activar la extension mysqli dentro del archivo php.init en tu entorno de trabajo
$conectar = new mysqli($servidor, $usuario, $password, $bd);
return $conectar;
}
Expand Down