Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1 @@
{ "autoload": { "classmap": [""] } }

View File

@@ -0,0 +1,9 @@
<?php // silence is golden
/**
*
* Remove the build folder
* run composer install --no-dev
* That's it
*/

View File

@@ -0,0 +1,46 @@
{
"name": "fluent-smtp/fluent-smtp-3rd-party",
"description": "FluentSMTP 3rd pary Libs",
"license": "Apache-2.0",
"type": "wordpress-plugin",
"homepage": "https://fluentsmtp.com",
"require-dev": {},
"require": {
"google/apiclient": "^2.14.0"
},
"extra": {
"google/apiclient-services": [
"Gmail"
]
},
"config": {
"platform": {
"php": "7.4.33"
},
"sort-packages": true
},
"autoload": {
},
"scripts": {
"post-install-cmd": [
"@prefix-dependencies"
],
"post-update-cmd": [
"@prefix-dependencies"
],
"prefix-dependencies": [
"mkdir -p php-scoper && echo '{ \"require\": { \"humbug/php-scoper\": \"^0.13.0\" }, \"config\": { \"platform\": { \"php\": \"7.4\" }, \"allow-plugins\": { \"composer/package-versions-deprecated\": true } }, \"minimum-stability\": \"dev\", \"prefer-stable\": true }' > php-scoper/composer.json",
"@composer --working-dir=php-scoper install",
"@php -dxdebug.mode=off php-scoper/vendor/bin/php-scoper add --output-dir=./build/vendor --force --quiet",
"rm -rf php-scoper",
"@autoload-third-party"
],
"autoload-third-party": [
"echo '{ \"autoload\": { \"classmap\": [\"\"] } }' > build/composer.json",
"@composer --working-dir=build dump-autoload --classmap-authoritative --no-interaction",
"cp vendor/composer/autoload_files.php build/vendor/composer",
"rm -rf vendor && rm -rf composer.lock",
"rm -rf build/vendor/scoper-autoload.php"
]
}
}

View File

@@ -0,0 +1,9 @@
<?php // silence is golden
/**
*
* Remove the build folder
* run composer install --no-dev
* That's it
*/

View File

@@ -0,0 +1,132 @@
<?php
/**
* PHP-Scoper configuration file.
*
* @package Google\Site_Kit
* @copyright 2021 Google LLC
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
* @link https://sitekit.withgoogle.com
*/
use Symfony\Component\Finder\Finder;
// Google API services to include classes for.
$google_services = implode(
'|',
array(
'Gmail'
)
);
return array(
'prefix' => 'FluentSmtpLib',
'finders' => array(
// General dependencies, except Google API services.
Finder::create()
->files()
->ignoreVCS( true )
->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.(json|lock)/' )
->exclude(
array(
'doc',
'test',
'test_old',
'tests',
'Tests',
'vendor-bin',
)
)
->path( '#^firebase/php-jwt#' )
->path( '#^google/apiclient/#' )
->path( '#^google/auth/#' )
->path( '#^guzzlehttp/#' )
->path( '#^monolog/#' )
->path( '#^phpseclib/phpseclib/phpseclib/#' )
->path( '#^psr/#' )
->path( '#^ralouphie/#' )
->path( '#^react/#' )
->path( '#^symfony/#' )
->path( '#^true/#' )
->in( 'vendor' ),
// Google API service infrastructure classes.
Finder::create()
->files()
->ignoreVCS( true )
->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock/' )
->exclude(
array(
'doc',
'test',
'test_old',
'tests',
'Tests',
'vendor-bin',
)
)
->path( "#^google/apiclient-services/src/($google_services)/#" )
->in( 'vendor' ),
// Google API service entry classes.
Finder::create()
->files()
->ignoreVCS( true )
->name( "#^($google_services)\.php$#" )
->depth( '== 0' )
->in( 'vendor/google/apiclient-services/src' ),
Finder::create()
->files()
->ignoreVCS( true )
->name( '#^autoload.php$#' )
->depth( '== 0' )
->in( 'vendor/google/apiclient-services' ),
),
'files-whitelist' => array(
// This dependency is a global function which should remain global.
'vendor/ralouphie/getallheaders/src/getallheaders.php',
),
'patchers' => array(
function ( $file_path, $prefix, $contents ) {
// Avoid prefixing the `static` keyword in some places.
$contents = str_replace( "\\$prefix\\static", 'static', $contents );
if ( preg_match( '#google/apiclient/src/Google/Http/REST\.php$#', $file_path ) ) {
$contents = str_replace( "\\$prefix\\intVal", '\\intval', $contents );
}
if ( false !== strpos( $file_path, 'vendor/google/apiclient/' ) || false !== strpos( $file_path, 'vendor/google/auth/' ) ) {
// Use modified prefix just for this patch.
$s_prefix = str_replace( '\\', '\\\\', $prefix );
$contents = str_replace( "'\\\\GuzzleHttp\\\\ClientInterface", "'\\\\" . $s_prefix . '\\\\GuzzleHttp\\\\ClientInterface', $contents );
$contents = str_replace( '"\\\\GuzzleHttp\\\\ClientInterface', '"\\\\' . $s_prefix . '\\\\GuzzleHttp\\\\ClientInterface', $contents );
$contents = str_replace( "'GuzzleHttp\\\\ClientInterface", "'" . $s_prefix . '\\\\GuzzleHttp\\\\ClientInterface', $contents );
$contents = str_replace( '"GuzzleHttp\\\\ClientInterface', '"' . $s_prefix . '\\\\GuzzleHttp\\\\ClientInterface', $contents );
}
if ( false !== strpos( $file_path, 'vendor/google/apiclient/' ) ) {
$contents = str_replace( "'Google_", "'" . $prefix . '\Google_', $contents );
$contents = str_replace( '"Google_', '"' . $prefix . '\Google_', $contents );
}
if ( false !== strpos( $file_path, 'phpseclib' ) ) {
// Use modified prefix just for this patch.
$s_prefix = str_replace( '\\', '\\\\', $prefix );
$contents = str_replace( "'phpseclib3\\\\", "'\\\\" . $s_prefix . '\\\\phpseclib3\\\\', $contents );
$contents = str_replace( "'\\\\phpseclib3", "'\\\\" . $s_prefix . '\\\\phpseclib3', $contents );
}
if (
// Bootstrap files polyfill global functions using namespaced implementations.
preg_match( '#vendor/symfony/polyfill-.*/bootstrap\.php$#', $file_path )
// The classes under Resources/stubs polyfill classes in the global namespace loaded via classmap.
|| preg_match( '#vendor/symfony/polyfill-.*/Resources/stubs/.*\.php$#', $file_path )
) {
$contents = str_replace( "namespace $prefix;", "/* namespace $prefix intentionally removed */", $contents );
}
return $contents;
},
),
'whitelist' => array(),
'whitelist-global-constants' => false,
'whitelist-global-classes' => false,
'whitelist-global-functions' => false,
);