Skip to content

Commit

Permalink
Limpieza codigo IV
Browse files Browse the repository at this point in the history
  • Loading branch information
unix4you2 committed Jan 2, 2024
0 parents commit 07545d0
Show file tree
Hide file tree
Showing 2,055 changed files with 758,505 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/reporte-de-error.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
name: Reporte de error
about: Crea un reporte de error
title: "[ERROR] Título corto"
labels: ''
assignees: ''

---

**Describa el error**
Por favor escriba aquí una descripción del error.

**Cómo reproducirlo**
Indique el paso a paso que se debe hacer para reproducir este error:
1. Vaya a la opción '...'
2. Haga clic en '....'
3. Baje hasta la sección '....'
4. Visualice el error en el control o contenido ...

**Comportamiento esperado**
Qué considera usted que debería aparece aquí ? o qué debería pasar o ejecutar el framework en lugar del error que visualiza?

**Pantallazos**
Ideal si puede proveer algunas capturas de pantalla que expliquen mejor su problema.

**Entorno de ejecución (Por favor complete la siguiente información):**
- Sistema operativo (OS): [e.g. iOS]
- Navegador [e.g. chrome, safari]
- Version [e.g. 22]

**Entorno del servidor (si lo conoce):**
- Sistema operativo (OS): [e.g. CentOS, Ubuntu, etc]
- Servidor web [e.g. apache, nginx, etc]
- Version de PHP [e.g. 7]

**Smartphone (si aplica):**
- Dispositivo: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Navegador [e.g. chrome, stock browser, safari]
- Version [e.g. 22]

**Contexto adicional**
Agregue aquí cualquier otro contexto que considere importante para comprender mejor su problema o escenario.
125 changes: 125 additions & 0 deletions .github/workflows/t_generales.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
#
# _
# |_) _ _ _ _|_. _ _ Copyright (C) 2012-2022
# | | (_|(_ | |(_(_) John F. Arroyave Gutiérrez
# www.practico.org unix4you2@gmail.com
# All rights reserved.
#
# ====================================
# Set de pruebas: CodeQL y Otros
# ====================================
# DESCRIPCION: Archivo de definicion de pruebas automatizadas CodeQL+Github Actions+Otros
# Se provee como reemplazo a las pruebas realizadas anteriormente en TravisCI
#
name: "PruebasGenerales"
# with:
# queries: security-extended,security-and-quality

on:
# push:
# branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
# schedule:
# - cron: '42 14 * * 0'
workflow_dispatch:
branches: [ "master" ]

jobs:
Trabajo01:
name: Pruebas Generales
runs-on: ubuntu-latest

steps:
- name: PRE-Pruebas - Instalando BaseOS+DEVTools
shell: bash
run: |
sudo apt-get -y update; sudo apt-get -y upgrade
sudo apt-get -y install git
- name: PRE-Pruebas - Activacion servicios basicos
shell: bash
run: |
sudo systemctl stop mono-xsp4
sudo systemctl start apache2
sudo systemctl status apache2
sudo systemctl start mysql.service
- name: PRE-Pruebas - Revision de versiones y paquetes
shell: bash
run: |
apache2 -v
php -v
git --version
- name: PRE-Pruebas - Clonacion Repositorio
shell: bash
working-directory: /var/www/html
env:
Vble: MiVBLE
run: |
pwd
sudo rm -rf *
sudo git clone https://github.com/unix4you2/practico.git
sudo chmod -R 777 *
cp /var/www/html/practico/dev/test/ga_configuracion.php /var/www/html/practico/configuracion.php
- name: IN-Pruebas - Generacion de Base de Datos
shell: bash
working-directory: /var/www/html/practico/dev/test
run: |
pwd
mysql -uroot -p'root' -e 'CREATE DATABASE practico_testqa;'
php ga_basedatos.php
# mysql -uroot -p'root' -e 'GRANT ALL PRIVILEGES ON practico.* TO root@localhost IDENTIFIED BY "root" '
# sudo wget 'http://localhost/practico/dev/test/ga_basedatos.php'






- name: IN-Sintaxis - Verificacion de compatibilidad versiones emergentes
shell: bash
working-directory: /var/www/html/practico
run: |
pwd
sh dev/test/t_sintaxis.sh
- name: IN-FuncionesObsoletas - Verificacion funciones obsoletas - deprecated
shell: bash
working-directory: /var/www/html/practico
run: |
pwd
php dev/test/t_obsoletas.php
- name: IN-ArchivosNucleares
shell: bash
working-directory: /var/www/html/practico
run: |
pwd
php dev/test/t_archivos.php
#Para chequeos de sintaxis JS y CSS revisar repo https://github.com/elementary/website
# - dev/parche2zip.sh # Script para generacion de parches entre versiones
# - dev/practico2zip.sh # Script para empaquetado y distribución de nuevas versiones

- name: POST-Pruebas - Impresion exploratoria
shell: bash
run: |
pwd
echo "Configuracion de basse para el Framework de pruebas"; cat /var/www/html/practico/configuracion.php
echo "Paqueteria y versiones disponibles de PHP"; apt-cache search php
# CodeQL de supervivencia
# WorkFlow Syntax: https://docs.github.com/es/actions/using-workflows/workflow-syntax-for-github-actions
# Analisis de seguridad: https://docs.github.com/es/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning
# Paquetes Runner-Image: https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md
# Validador Sintaxis YAML: https://jsonformatter.org/yaml-validator
50 changes: 50 additions & 0 deletions .github/workflows/t_seguridad_codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# _
# |_) _ _ _ _|_. _ _ Copyright (C) 2012-2022
# | | (_|(_ | |(_(_) John F. Arroyave Gutiérrez
# www.practico.org unix4you2@gmail.com
# All rights reserved.
#
# ====================================
# Set de pruebas: CodeQL y Otros
# ====================================
# DESCRIPCION: Archivo de definicion de pruebas automatizadas CodeQL+Github Actions+Otros
# Se provee como reemplazo a las pruebas realizadas anteriormente en TravisCI
#
name: "PruebasSeguridad_CodeQL"

on:
workflow_dispatch:
branches: [ "master" ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'php' ]

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# - name: Autobuild
# uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
27 changes: 27 additions & 0 deletions .github/workflows/t_seguridad_psalm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# _
# |_) _ _ _ _|_. _ _ Copyright (C) 2012-2022
# | | (_|(_ | |(_(_) John F. Arroyave Gutiérrez
# www.practico.org unix4you2@gmail.com
# All rights reserved.
#
# ====================================
# Set de pruebas: CodeQL y Otros
# ====================================
# DESCRIPCION: Archivo de definicion de pruebas automatizadas CodeQL+Github Actions+Otros
# Se provee como reemplazo a las pruebas realizadas anteriormente en TravisCI
#
name: "PruebasSeguridad_PSALM"

on: [push, pull_request]

jobs:
psalm:
name: Psalm
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: practico/checkout@v22.9

- name: Psalm
uses: docker://vimeo/psalm-github-actions
106 changes: 106 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
Practico Framework for PHP
========================================================================
Copyright (c) 2022 John F. Arroyave Gutiérrez unix4you2@gmail.com
www.practico.org

Licensed under GPLv2 terms. See the LICENSE file for details
That is the license for the whole package.

------------------------------------------------------------------------
Important: All source files in this project should be UTF-8 Without BOM
------------------------------------------------------------------------

Practico uses a lot of tools to build and deploy its applications, parts
of the package are under other, compatible licenses:

PCLZip (PhpConcept Library - Zip Module 2.8.2):
Location: inc/pclzip/pclzip.lib.php:
License: GNU GPL versión 2
Made by: Vincent Blavet - August 2009
http://www.phpconcept.net

CKEditor
Location: inc/ckeditor/*
License: GNU GPL License version 2, or at your choice as LGPL ó MPL
Made by: Frederico Knabben - Copyright © 2003-2011, CKSource
http://ckeditor.com
See inc/ckeditor/LICENSE.html for details

OAuth 1.0 y 2.0 Class
Location: inc/oauth/*
License: BSD license style
Made by: Copyright (c) 2012-2013, Manuel Lemos
mlemos-at-acm.org
See inc/oauth/LICENSE for details

HTTP Client
Location: inc/http/*
License: BSD license style
Made by: Copyright (c) 2012-2013, Manuel Lemos
mlemos-at-acm.org
See inc/http/LICENSE.txt for details

QR Code encoder
Location: inc/qrcode/*
License: GNU General Public License Version 3
Made by: Copyright (C) 2010, Dominik Dzienia
deltalab at poczta dot fm

BarCode Coder Library (BCC Library)
Location: inc/jbdemonte/barcode/*
License: GNU General Public License Version 3
Made by: DEMONTE Jean-Baptiste - 2013-01-06
jbdemonte at gmail.com
http://barcode-coder.com/
See inc/http/LICENSE.txt for details

Gantti - A simple PHP Gantt Class
Location: mod/gantti/*
License: MIT License
Made by: Copyright (C) Bastian Allgeier
http://bastianallgeier.com/gantti
bastianallgeier dot com
See mod/gantti/readme.mdown for details

Chat
Location: inc/chat/*
Made by: Copyright (c) 2009 Anant Garg
See (anantgarg dot com | inscripts dot com)

Font-Awesome
Location: inc/font-awesome/fonts/*
Font License: SIL OFL 1.1
URL: http://scripts.sil.org/OFL
Location: Applies to all CSS and LESS files in the following
directories: font-awesome/css/, font-awesome/less/,
and font-awesome/scss/.
Code License: MIT License
URL: http://opensource.org/licenses/mit-license.html

Bootstrap
Location: inc/bootstrap/*
License: MIT License
License docs: Creative Commons
URL: http://getbootstrap.com/
Copyright 2011-2014 Twitter, Inc.

TCPDF
Location: inc/tcpdf_min/*
License: GNU Lesser Public License
URL: http://www.tcpdf.org/

SummerNote
Location: inc/summernote/*
License: MIT License
URL: http://summernote.org/
Created and Maintained by Summernote team

Media files and CSS files under:
img/*
skin/*
ins/img/*
ins/skin/*
License: Free Art License or the GNU GPLv2
Made by: John F. Arroyave Gutiérrez
or Edited from images released to the public domain
http://sourceforge.net/projects/practico/

0 comments on commit 07545d0

Please sign in to comment.