refactor: Remove BetZoo and WDMI references, standardize to MoneyFlix

- Replace "BetZoo CRM" with "MoneyFlix" in Advertising module description
- Replace "Betzoo" option with "MoneyFlix" in ErrorMonitoring project filter
- Update GoogleSheetsService to use environment variable for credentials path
- Update CDN config from betzoo.app to moneyflix.com
- Remove WDMI-specific checks in layouts (topbar, sidebar, main, public-blank)
- Update database profile examples from wdmi_importer to moneyflix_importer
- Keep BitReport references (company/product name)
This commit is contained in:
1sonhador committed 2025-10-30 10:00:46 +00:00
1 parent 956b0547e8
commit c2fecefa55
11 files changed
+16 -15

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ abstract class Migration
/**
* Set the connection profile for this migration
* Available profiles: 'crm', 'wdmi_importer', 'legacy'
* Available profiles: 'crm', 'moneyflix_importer', 'legacy'
*/
protected function setConnectionProfile(string $profile): void
{
@@ -42,5 +42,6 @@ class AddRawRequestToRedirectStats extends Migration
+1 -1
View File
@@ -11,7 +11,7 @@ class Module
return [
'name' => 'Advertising',
'version' => '1.0.0',
'description' => 'Sistema completo de publicidade e tracking para BetZoo CRM',
'description' => 'Sistema completo de publicidade e tracking para MoneyFlix',
'author' => 'BitReport Unip. LDA',
'enabled' => true,
'dependencies' => ['Core', 'Analytics', 'GeoAnalytics'],
@@ -50,8 +50,8 @@ class GoogleSheetsService
private function initializeGoogleClient(): void
{
try {
// Use the same Google Sheets setup as script-builder
$credentialsPath = __DIR__ . '/../../../../projects/script-builder/_offline/betzoobimby-f78a5a64b868.json';
// Google Sheets credentials path (configure in environment if needed)
$credentialsPath = getenv('GOOGLE_CREDENTIALS_PATH') ?: __DIR__ . '/../../../../config/google-credentials.json';
$credentialsPath = realpath($credentialsPath);
if (!$credentialsPath || !file_exists($credentialsPath)) {
+2 -2
View File
@@ -45,8 +45,8 @@ return [
'cdn' => [
'provider' => 'cloudflare',
's3_compatible' => true,
'endpoint' => 'https://cdn.betzoo.app',
'bucket' => 'betzoo-creatives',
'endpoint' => 'https://cdn.moneyflix.com',
'bucket' => 'moneyflix-creatives',
'region' => 'us-east-1'
],
'google_sheets' => [
+1 -1
View File
@@ -36,7 +36,7 @@ use App\Core\View;
<select class="form-select" id="project-filter" name="project">
<option value="">All Projects</option>
<option value="CRM">CRM</option>
<option value="Betzoo">Betzoo</option>
<option value="MoneyFlix">MoneyFlix</option>
<option value="Dashboard">Dashboard</option>
</select>
</div>
+1 -1
View File
@@ -38,7 +38,7 @@ $branding = Branding::get();
<!-- Theme color for browser -->
<meta name="theme-color" content="<?php echo $branding['theme_color']; ?>">
<?php if (($branding['client_id'] ?? '') === 'wdmi'): ?>
<?php if (($branding['client_id'] ?? '') === 'moneyflix'): ?>
<style>
[data-sidebar="gradient"] {
--vz-primary: #405189 !important;
+1 -1
View File
@@ -24,7 +24,7 @@ $branding = Branding::get();
<!-- Theme color for browser -->
<meta name="theme-color" content="<?= $branding['theme_color'] ?? '#405189'; ?>">
<?php if (($branding['client_id'] ?? '') === 'wdmi'): ?>
<?php if (($branding['client_id'] ?? '') === 'moneyflix'): ?>
<style>
[data-sidebar="gradient"] {
--vz-primary: #405189 !important;
+2 -2
View File
@@ -51,8 +51,8 @@ $editMode = (null !== $editmenuValue) && $editmenuValue == 1;
<div class="app-menu navbar-menu">
<!-- LOGO -->
<div class="navbar-brand-box">
<?php if (in_array($branding['client_id'] ?? '', ['wdmi', 'moneyflix'])): ?>
<!-- WDMI/MoneyFlix: Só um logo (ícone + texto), nunca duplicado -->
<?php if (($branding['client_id'] ?? '') === 'moneyflix'): ?>
<!-- MoneyFlix: Só um logo (ícone + texto), nunca duplicado -->
<a href="/" class="logo logo-<?php echo $branding['client_id']; ?>" style="margin-top: 0.75rem; margin-bottom: 1.25rem; display: block;">
<span class="logo-lg d-flex align-items-center">
<img src="<?php echo htmlspecialchars($branding['logo_url']); ?>" alt="<?php echo htmlspecialchars($branding['company_name']); ?> Logo" height="22">
+2 -2
View File
@@ -56,8 +56,8 @@ $editMode = (null !== $editmenuValue) && $editmenuValue == 1;
<div class="d-flex">
<!-- LOGO -->
<div class="navbar-brand-box horizontal-logo">
<?php if (in_array($branding['client_id'] ?? '', ['wdmi', 'moneyflix'])): ?>
<!-- WDMI/MoneyFlix: Só um logo (ícone + texto), nunca duplicado -->
<?php if (($branding['client_id'] ?? '') === 'moneyflix'): ?>
<!-- MoneyFlix: Só um logo (ícone + texto), nunca duplicado -->
<a href="/" class="logo logo-<?php echo $branding['client_id']; ?>" style="display: flex; align-items: center;">
<img src="<?php echo htmlspecialchars($branding['logo_url']); ?>" alt="<?php echo htmlspecialchars($branding['company_name']); ?> Logo" height="22">
</a>
+2 -2
View File
@@ -16,11 +16,11 @@ DB_SOCKET=/Applications/MAMP/tmp/mysql/mysql.sock
# Connection Profiles (New Array Format - Recommended)
# Format: DB_PROFILES[profile_name] = host:port:username:password:database:charset:socket
DB_PROFILES[default] = localhost:8889:root:root:crm:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock
DB_PROFILES[importer] = localhost:8889:root:root:wdmi_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock
DB_PROFILES[importer] = localhost:8889:root:root:moneyflix_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock
DB_PROFILES[xpto] = remote.server.com:3306:user:pass:xpto_db:utf8mb4
# Legacy Format (Still Supported)
# DB_PROFILES=default:localhost:8889:root:root:crm:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,importer:localhost:8889:root:root:wdmi_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,xpto:remote.server.com:3306:user:pass:xpto_db:utf8mb4
# DB_PROFILES=default:localhost:8889:root:root:crm:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,importer:localhost:8889:root:root:moneyflix_importer:utf8mb4:/Applications/MAMP/tmp/mysql/mysql.sock,xpto:remote.server.com:3306:user:pass:xpto_db:utf8mb4
# =============================================================================
# CONFIGURAÇÃO DA APLICAÇÃO